When started, slock doesn't blank the displays to colour 0 until a slock to realise the input buffer is empty (i.e. backspace is hit). As far as I can tell, this isn't the intended behaviour. This patch fixes this problem such that as soon as slock is started, the display is blanked to colour 0, rather than (in my case) black.
This is the first time I've submitted a patch via email like this, so please make appropriate allowances for any ignorance on my part. -- Four word witty remark
--- a/slock.c +++ b/slock.c @@ -286,7 +286,11 @@ int nlocks = 0; for(screen = 0; screen < nscreens; screen++) { if ( (locks[screen] = lockscreen(dpy, screen)) != NULL) + { + XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[0]); + XClearWindow(dpy, locks[screen]->win); nlocks++; + } } XSync(dpy, False);