summaryrefslogtreecommitdiffstats
path: root/src/libdraw/x11-keyboard.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-10-11 02:47:43 +0000
committerrsc <devnull@localhost>2003-10-11 02:47:43 +0000
commit161060a46346fa0beeb48b55ed28b2cd330bc4e8 (patch)
treeddcba6ab6af148fefd7667f494485ebc3675fa3f /src/libdraw/x11-keyboard.c
parent4af386f434d5ca3de733951d4f73dd134e879cc2 (diff)
downloadplan9port-161060a46346fa0beeb48b55ed28b2cd330bc4e8.tar.gz
plan9port-161060a46346fa0beeb48b55ed28b2cd330bc4e8.zip
Lots of X fixes.
Diffstat (limited to 'src/libdraw/x11-keyboard.c')
-rw-r--r--src/libdraw/x11-keyboard.c2
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: