On Mon, Apr 28, 2014 at 08:05:59PM +1000, Thiébaud Weksteen wrote: > See attached! > > ... >8 .....
Why not simply XSetWindowBackground(dpy, locks[screen]->win, (ev.xkey.state && LockMask) ? locks[screen]->colors[2] : locks[screen]->colors[1]); ? You aren't using the caps_state anywhere anyway.
pgpsGvFK6S4x2.pgp
Description: PGP signature