updateopacity(): catch X11 errors; introduce LERROR() macro