commit - a3a83c9e5f87783b6f171c1ae3e694a26bb262f8
commit + cdd61ab0aee825e93688ae5d2cfb86f14baad858
blob - ff35c8332de91d27d513c1e59bc6bcc4b7ae79ea
blob + 08d6f08674e921a314e5d26aa7d8de853eee3db1
--- src/libdraw/x11-keyboard.c
+++ src/libdraw/x11-keyboard.c
fd = XConnectionNumber(_x.kbdcon);
XSelectInput(_x.kbdcon, _x.drawable, KeyPressMask);
for(;;){
- 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);