select for SubstructureRedirectMask as well
authoranselm@garbe.us <unknown>
Thu, 9 Feb 2012 19:56:34 +0000 (20:56 +0100)
committeranselm@garbe.us <unknown>
Thu, 9 Feb 2012 19:56:34 +0000 (20:56 +0100)
slock.c

diff --git a/slock.c b/slock.c
index 7f74f71..96d4379 100644 (file)
--- a/slock.c
+++ b/slock.c
@@ -201,6 +201,8 @@ lockscreen(Display *dpy, int screen) {
                unlockscreen(dpy, lock);
                lock = NULL;
        }
+       else 
+               XSelectInput(dpy, lock->root, SubstructureNotifyMask);
 
        return lock;
 }