From 124303ab7233734273eeccbc7c7507b09ddb2675 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Jun 2007 15:53:14 +0000 Subject: only xungrabkeyboard when we actually have a passive grab on it --- openbox/keyboard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbox/keyboard.c') diff --git a/openbox/keyboard.c b/openbox/keyboard.c index e62f5011..9fd38def 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -276,7 +276,13 @@ void keyboard_event(ObClient *client, const XEvent *e) { KeyBindingTree *p; + if (e->type == KeyRelease) { + grab_key_passive_count(-1); + return; + } + g_assert(e->type == KeyPress); + grab_key_passive_count(1); if (e->xkey.keycode == config_keyboard_reset_keycode && e->xkey.state == config_keyboard_reset_state) -- cgit v1.2.3