diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-22 15:22:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-22 15:22:25 +0000 |
| commit | 27773e1cb7492de080bd19189b4fcd2a6b9a0e9e (patch) | |
| tree | 8bacdfc836ddb9d8da398e5981061fb578641b80 /openbox/keyboard.c | |
| parent | 4c672be2e1f39e72eb7d7e99f129e61338f481b2 (diff) | |
don't grab the pointer during interactive events. this allows you to alt-tab during a dnd.
Diffstat (limited to 'openbox/keyboard.c')
| -rw-r--r-- | openbox/keyboard.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 248fd1ce..ba455955 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -164,10 +164,8 @@ gboolean keyboard_interactive_grab(guint state, ObClient *client, g_assert(action->data.any.interactive); if (!interactive_states) { - if (!grab_keyboard(TRUE)) - return FALSE; - if (!grab_pointer(TRUE, FALSE, OB_CURSOR_NONE)) { - grab_keyboard(FALSE); + if (!grab_keyboard(TRUE)) { + ob_debug("grab KEYBOARD failed\n"); return FALSE; } } @@ -195,7 +193,6 @@ void keyboard_interactive_end(ObInteractiveState *s, if (!interactive_states) { grab_keyboard(FALSE); - grab_pointer(FALSE, FALSE, OB_CURSOR_NONE); keyboard_reset_chains(); } } |
