diff options
author | rsc <devnull@localhost> | 2004-04-21 17:52:09 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-21 17:52:09 +0000 |
commit | a3a83c9e5f87783b6f171c1ae3e694a26bb262f8 (patch) | |
tree | 317160f81c1ce2044d84df63f194433999d20e5a /src/libdraw | |
parent | 7025271a714583fc0b34f7c794a0a24e7241971d (diff) | |
download | plan9port-a3a83c9e5f87783b6f171c1ae3e694a26bb262f8.tar.gz plan9port-a3a83c9e5f87783b6f171c1ae3e694a26bb262f8.tar.bz2 plan9port-a3a83c9e5f87783b6f171c1ae3e694a26bb262f8.zip |
no need for
Diffstat (limited to 'src/libdraw')
-rw-r--r-- | src/libdraw/test.core | bin | 1425408 -> 0 bytes | |||
-rw-r--r-- | src/libdraw/x11-keyboard.c | 9 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/libdraw/test.core b/src/libdraw/test.core Binary files differdeleted file mode 100644 index 4cc55140..00000000 --- a/src/libdraw/test.core +++ /dev/null diff --git a/src/libdraw/x11-keyboard.c b/src/libdraw/x11-keyboard.c index 02a98f4c..ff35c833 100644 --- a/src/libdraw/x11-keyboard.c +++ b/src/libdraw/x11-keyboard.c @@ -45,15 +45,22 @@ _ioproc(void *arg) fd = XConnectionNumber(_x.kbdcon); XSelectInput(_x.kbdcon, _x.drawable, KeyPressMask); for(;;){ - while(XCheckWindowEvent(_x.kbdcon, _x.drawable, KeyPressMask, &xevent) == False) + fprint(2, "x1 kc->c %p\n", kc->c); + while(XCheckWindowEvent(_x.kbdcon, _x.drawable, KeyPressMask, &xevent) == False){ + fprint(2, "x2 kc->c %p\n", kc->c); threadfdwait(fd, 'r'); + fprint(2, "x3 kc->c %p\n", kc->c); + } switch(xevent.type){ case KeyPress: + fprint(2, "x4 kc->c %p\n", kc->c); i = _xtoplan9kbd(&xevent); + fprint(2, "x5 kc->c %p\n", kc->c); if(i == -1) continue; r = i; send(kc->c, &r); + fprint(2, "x6 kc->c %p\n", kc->c); while((i=_xtoplan9kbd(nil)) >= 0){ r = i; send(kc->c, &r); |