summaryrefslogtreecommitdiff
path: root/plugins/keyboard/keyboard.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-26 15:02:08 +0000
committerDana Jansens <danakj@orodu.net>2003-03-26 15:02:08 +0000
commitf29dd7e0cd0ceef0bfe95c865b6b22d34b065b7b (patch)
tree1f5556b92eaa542ec0018c6e177a626cdd7d41f9 /plugins/keyboard/keyboard.c
parent1d5fa24e4b92fbd2fc16847612a6825ca08d6567 (diff)
not using CurrentTime anywhere
Diffstat (limited to 'plugins/keyboard/keyboard.c')
-rw-r--r--plugins/keyboard/keyboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c
index 22ea5556..7e2df475 100644
--- a/plugins/keyboard/keyboard.c
+++ b/plugins/keyboard/keyboard.c
@@ -1,6 +1,7 @@
#include "../../kernel/focus.h"
#include "../../kernel/dispatch.h"
#include "../../kernel/openbox.h"
+#include "../../kernel/event.h"
#include "../../kernel/grab.h"
#include "../../kernel/action.h"
#include "tree.h"
@@ -40,7 +41,7 @@ static void reset_chains()
grabbed = FALSE;
grab_keyboard(FALSE);
} else
- XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
+ XAllowEvents(ob_display, AsyncKeyboard, event_lasttime);
}
gboolean kbind(GList *keylist, Action *action)
@@ -102,7 +103,8 @@ static void press(ObEvent *e, void *foo)
if (!grabbed) {
grab_keyboard(TRUE);
grabbed = TRUE;
- XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
+ XAllowEvents(ob_display, AsyncKeyboard,
+ event_lasttime);
}
curpos = p;
} else {