diff options
Diffstat (limited to 'src/libdraw/x11-keyboard.c')
-rw-r--r-- | src/libdraw/x11-keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdraw/x11-keyboard.c b/src/libdraw/x11-keyboard.c index 188e52bf..92b57814 100644 --- a/src/libdraw/x11-keyboard.c +++ b/src/libdraw/x11-keyboard.c @@ -41,8 +41,8 @@ _ioproc(void *arg) kc = arg; threadsetname("kbdproc"); kc->pid = getpid(); + XSelectInput(_x.kbdcon, _x.drawable, KeyPressMask); for(;;){ - XSelectInput(_x.kbdcon, _x.drawable, KeyPressMask); XWindowEvent(_x.kbdcon, _x.drawable, KeyPressMask, &xevent); switch(xevent.type){ case KeyPress: |