From 6d0b40120156a22770f704c20dde21997b1c270a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 26 Mar 2003 08:18:15 +0000 Subject: [PATCH] XAllowEvents with a timestamp, otherwise we end up with a grab in place that we dont want --- plugins/keyboard/keyboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 30ed5ada..9b9c0882 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -87,7 +87,6 @@ static void press(ObEvent *e, void *foo) if (e->data.x.e->xkey.keycode == reset_key && e->data.x.e->xkey.state == reset_state) { reset_chains(); - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } else { KeyBindingTree *p; if (curpos == NULL) @@ -104,7 +103,6 @@ static void press(ObEvent *e, void *foo) grabbed = TRUE; } curpos = p; - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } else { if (p->action->func != NULL) { p->action->data.any.c = focus_client; @@ -115,7 +113,6 @@ static void press(ObEvent *e, void *foo) p->action->func(&p->action->data); } - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); reset_chains(); } break; @@ -123,6 +120,7 @@ static void press(ObEvent *e, void *foo) p = p->next_sibling; } } + XAllowEvents(ob_display, AsyncKeyboard, e->data.x.e->xkey.time); } static void binddef() -- 2.39.2