]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
only kill focus cycling when the window being destroyed was in the list of targets
[chaz/openbox] / openbox / focus.c
index 73099a4bcc688bef43411875de4d9626f4939641..6713d98dd7566535fe8d81cb5d4d0e0a502af652 100644 (file)
@@ -75,7 +75,8 @@ void focus_set_client(ObClient *client)
     screen_install_colormap(client, TRUE);
 
     /* in the middle of cycling..? kill it. */
-    focus_cycle_stop();
+    focus_cycle_stop(focus_client);
+    focus_cycle_stop(client);
 
     focus_client = client;
 
@@ -208,7 +209,7 @@ void focus_order_add_new(ObClient *c)
     }
 
     /* in the middle of cycling..? kill it. */
-    focus_cycle_stop();
+    focus_cycle_stop(c);
 }
 
 void focus_order_remove(ObClient *c)
@@ -216,7 +217,7 @@ void focus_order_remove(ObClient *c)
     focus_order = g_list_remove(focus_order, c);
 
     /* in the middle of cycling..? kill it. */
-    focus_cycle_stop();
+    focus_cycle_stop(c);
 }
 
 void focus_order_to_top(ObClient *c)
This page took 0.01985 seconds and 4 git commands to generate.