projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
922580e
)
ungrab only as many times as we grabbed
author
Dana Jansens
<danakj@orodu.net>
Thu, 4 Sep 2003 00:39:05 +0000
(
00:39
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 4 Sep 2003 00:39:05 +0000
(
00:39
+0000)
openbox/keyboard.c
patch
|
blob
|
history
diff --git
a/openbox/keyboard.c
b/openbox/keyboard.c
index 1f509f77ff8c5e61aa0544690053f95faea16b3d..cef0dfd68364179545010102d024c43a8b416e56 100644
(file)
--- 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;
}
}