From 27773e1cb7492de080bd19189b4fcd2a6b9a0e9e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Apr 2007 15:22:25 +0000 Subject: don't grab the pointer during interactive events. this allows you to alt-tab during a dnd. --- openbox/keyboard.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'openbox/keyboard.c') 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(); } } -- cgit v1.2.3