grab the keyboard not the server!

This commit is contained in:
Dana Jansens 2003-03-18 20:02:09 +00:00
parent 838f76cd21
commit 6dd06740e9

View file

@ -34,7 +34,7 @@ static void reset_chains()
curpos = NULL; curpos = NULL;
if (grabbed) { if (grabbed) {
grabbed = FALSE; grabbed = FALSE;
grab_server(FALSE); grab_keyboard(FALSE);
} }
} }
@ -111,7 +111,7 @@ static void press(ObEvent *e, void *foo)
if (p->first_child != NULL) { /* part of a chain */ if (p->first_child != NULL) { /* part of a chain */
/* XXX TIMER */ /* XXX TIMER */
if (!grabbed) { if (!grabbed) {
grab_server(TRUE); grab_keyboard(TRUE);
grabbed = TRUE; grabbed = TRUE;
XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
} }