summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-10 15:25:01 +0000
committerDana Jansens <danakj@orodu.net>2007-05-10 15:25:01 +0000
commit1c70f6b66740e40432974e26d65d857a2a8a97c5 (patch)
treef4ef7ae68234f5d9ce6f9c7ae456308f72f160f3
parent5667acacbcba35a8355b4eb0f5b58cab015676c6 (diff)
make stuff know it is not focused but changing desktops it still doesn't know
-rw-r--r--openbox/keyboard.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c
index d8f35bcc..84ae2a38 100644
--- a/openbox/keyboard.c
+++ b/openbox/keyboard.c
@@ -195,14 +195,15 @@ static void keyboard_interactive_end(guint state, gboolean cancel, Time time,
g_assert(istate.active);
+ /* ungrab first so they won't be NotifyWhileGrabbed */
+ if (ungrab)
+ grab_keyboard(FALSE);
+
alist = g_slist_append(NULL, istate.action);
action_run_interactive(alist, istate.client, state, time, cancel, TRUE);
g_slist_free(alist);
istate.active = FALSE;
-
- if (ungrab)
- grab_keyboard(FALSE);
}
static void keyboard_interactive_end_client(ObClient *client, gpointer data)