]> Dogcows Code - chaz/openbox/commitdiff
grab the mouse during focus cycling. this removes the bug of focusing following the...
authorDana Jansens <danakj@orodu.net>
Sun, 18 May 2003 03:32:34 +0000 (03:32 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 18 May 2003 03:32:34 +0000 (03:32 +0000)
openbox/focus.c

index 08fb09e14e95e1e1619b80acf2a3db670df2272b..6f5b04d12a124fb9053133b693a363f85d01795d 100644 (file)
@@ -271,6 +271,9 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
             client_activate(focus_cycle_target);
         goto done_cycle;
     }
+    if (!first)
+        grab_pointer(TRUE, None);
+
     if (!first) first = focus_client;
     if (!focus_cycle_target) focus_cycle_target = focus_client;
 
@@ -312,7 +315,10 @@ done_cycle:
     focus_cycle_target = NULL;
     g_list_free(order);
     order = NULL;
+
     popup_cycle(ft, FALSE);
+    grab_pointer(FALSE, None);
+
     return NULL;
 }
 
This page took 0.024192 seconds and 4 git commands to generate.