summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranselm@garbe.us <unknown>2012-02-09 20:56:34 +0100
committeranselm@garbe.us <unknown>2012-02-09 20:56:34 +0100
commit0b1362846242d510c4fd160b7e6579278213a544 (patch)
tree108c8ffceef2039747ca198073713547e0333cc3
parent7a217cb7c4f1a7439b76f5fb839035d7021eb7ff (diff)
downloadslock-0b1362846242d510c4fd160b7e6579278213a544.tar.gz
slock-0b1362846242d510c4fd160b7e6579278213a544.tar.xz
select for SubstructureRedirectMask as well
-rw-r--r--slock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slock.c b/slock.c
index 7f74f71..96d4379 100644
--- 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;
}