no need for

This commit is contained in:
rsc 2004-04-21 17:52:09 +00:00
parent 7025271a71
commit a3a83c9e5f
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View file

@ -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);