]> Dogcows Code - chaz/openbox/commitdiff
focus_client was becoming invalid if the focused client was unmanaged.
authorDana Jansens <danakj@orodu.net>
Mon, 23 Apr 2007 23:11:33 +0000 (23:11 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 23 Apr 2007 23:11:33 +0000 (23:11 +0000)
openbox/client.c
openbox/focus.c

index 5471bedd21a1e876ede8e6231d17a3606edbac1d..c184c891dbb90efab902c47cb0f20f1e771dc2b3 100644 (file)
@@ -525,7 +525,6 @@ void client_unmanage(ObClient *self)
         event_ignore_queued_enters();
     }
 
-
     keyboard_grab_for_client(self, FALSE);
     mouse_grab_for_client(self, FALSE);
 
index 4c663c3f124eabd30a223489263f1f24b6eb2120..788e168359276ea05881f27ab1fb1bbf02e04f2e 100644 (file)
@@ -763,6 +763,8 @@ void focus_order_add_new(ObClient *c)
 void focus_order_remove(ObClient *c)
 {
     focus_order = g_list_remove(focus_order, c);
+    if (c == focus_client)
+        focus_client = NULL;
 }
 
 void focus_order_to_top(ObClient *c)
This page took 0.029124 seconds and 4 git commands to generate.