X-Git-Url: https://git.xinqibao.xyz/slock.git/blobdiff_plain/7a217cb7c4f1a7439b76f5fb839035d7021eb7ff..34f5edb29e3947d105235c1fc07be57eda5adeb5:/slock.c 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; }