all repos — openbox @ 6d0b40120156a22770f704c20dde21997b1c270a

openbox fork - make it a bit more like ryudo

XAllowEvents with a timestamp, otherwise we end up with a grab in place that we dont want
Dana Jansens danakj@orodu.net
commit

6d0b40120156a22770f704c20dde21997b1c270a

parent

b48c0e0b47b649af5b93619af8021420264b19d6

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M plugins/keyboard/keyboard.cplugins/keyboard/keyboard.c

@@ -87,7 +87,6 @@ {

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 @@ grab_keyboard(TRUE);

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

p->action->func(&p->action->data); } - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); reset_chains(); } break;

@@ -123,6 +120,7 @@ }

p = p->next_sibling; } } + XAllowEvents(ob_display, AsyncKeyboard, e->data.x.e->xkey.time); } static void binddef()