]> Dogcows Code - chaz/openbox/commitdiff
don't assert, users can bind stuff however they like. but if they do something that...
authorDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 23:32:50 +0000 (23:32 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 23:32:50 +0000 (23:32 +0000)
openbox/client.c

index c68cd47951b278229e31655ee8e836f33dfae415..6446a794d58ba5050d49359a17d5de10d0ba00a4 100644 (file)
@@ -3343,13 +3343,15 @@ gboolean client_focus(ObClient *self)
                   "Focusing client \"%s\" at time %u\n",
                   self->title, event_curtime);
 
-    /* if we move focus during a grab, applications will get
-       NotifyWhileGrabbed events and ignore them !
+    /* if there is a grab going on, then we need to cancel it. if we move
+       focus during the grab, applications will get NotifyWhileGrabbed events
+       and ignore them !
 
-       interactive actions should not do anything that can move focus until
-       their finishing.
+       actions should not rely on being able to move focus during an
+       interactive grab.
     */
-    g_assert(!keyboard_interactively_grabbed());
+    if (keyboard_interactively_grabbed())
+        keyboard_interactive_cancel();
 
     error = FALSE;
     xerror_set_ignore(TRUE);
This page took 0.028605 seconds and 4 git commands to generate.