summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/keyboard/keyboard.c6
-rw-r--r--plugins/mouse/mouse.c3
2 files changed, 6 insertions, 3 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 {
diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c
index 0a967205..6165744f 100644
--- a/plugins/mouse/mouse.c
+++ b/plugins/mouse/mouse.c
@@ -1,6 +1,7 @@
#include "../../kernel/openbox.h"
#include "../../kernel/dispatch.h"
#include "../../kernel/action.h"
+#include "../../kernel/event.h"
#include "../../kernel/client.h"
#include "../../kernel/frame.h"
#include "../../kernel/grab.h"
@@ -219,7 +220,7 @@ static void event(ObEvent *e, void *foo)
if (context == g_quark_try_string("client")) {
/* Replay the event, so it goes to the client*/
- XAllowEvents(ob_display, ReplayPointer, CurrentTime);
+ XAllowEvents(ob_display, ReplayPointer, event_lasttime);
/* Fall through to the release case! */
} else
break;