diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-26 14:39:14 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-26 14:39:14 +0000 |
| commit | 1d5fa24e4b92fbd2fc16847612a6825ca08d6567 (patch) | |
| tree | 388a7938107b4e4f5af40f289b12c0cd43edf045 /plugins/keyboard | |
| parent | 78424735f31644d7adc16ab09d90602b08c0c52b (diff) | |
use CurrentTime again?
Diffstat (limited to 'plugins/keyboard')
| -rw-r--r-- | plugins/keyboard/keyboard.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index cf48b2e9..22ea5556 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -6,6 +6,7 @@ #include "tree.h" #include "keyboard.h" #include "keysrc.h" +#include "translate.h" #include <glib.h> void plugin_setup_config() @@ -38,7 +39,8 @@ static void reset_chains() if (grabbed) { grabbed = FALSE; grab_keyboard(FALSE); - } + } else + XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } gboolean kbind(GList *keylist, Action *action) @@ -100,6 +102,7 @@ static void press(ObEvent *e, void *foo) if (!grabbed) { grab_keyboard(TRUE); grabbed = TRUE; + XAllowEvents(ob_display, AsyncKeyboard, CurrentTime); } curpos = p; } else { @@ -119,7 +122,6 @@ static void press(ObEvent *e, void *foo) p = p->next_sibling; } } - XAllowEvents(ob_display, AsyncKeyboard, e->data.x.e->xkey.time); } void plugin_startup() |
