X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Fkeyboard.c;h=9b9c0882da295c6d2e1bed453299fafd889b5300;hb=ac735b647c9915a40fc3c44a04f7f5f7cacb4278;hp=4fa6a8ed4d51ab00d36ee8a550d4beca612d6e52;hpb=001233837ec4789e2363e21dc124e10294233adb;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 4fa6a8ed..9b9c0882 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -7,6 +7,10 @@ #include "keyboard.h" #include +void plugin_setup_config() +{ +} + KeyBindingTree *firstnode; static KeyBindingTree *curpos; @@ -83,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) @@ -98,7 +101,6 @@ static void press(ObEvent *e, void *foo) if (!grabbed) { grab_keyboard(TRUE); grabbed = TRUE; - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } curpos = p; } else { @@ -111,7 +113,6 @@ static void press(ObEvent *e, void *foo) p->action->func(&p->action->data); } - XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); reset_chains(); } break; @@ -119,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()