From bd41f6ee1e0904311fe5ce01aab8bff104e0a27e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 4 Sep 2003 00:39:05 +0000 Subject: [PATCH] ungrab only as many times as we grabbed --- openbox/keyboard.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 1f509f77..cef0dfd6 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -186,12 +186,15 @@ gboolean keyboard_process_interactive_grab(const XEvent *e, s->action->func(&s->action->data); - grab_keyboard(FALSE); - grab_pointer(FALSE, OB_CURSOR_NONE); - keyboard_reset_chains(); - g_free(s); + interactive_states = g_slist_delete_link(interactive_states, it); + if (!interactive_states) { + grab_keyboard(FALSE); + grab_pointer(FALSE, OB_CURSOR_NONE); + keyboard_reset_chains(); + } + handled = TRUE; } } -- 2.39.2