]> Dogcows Code - chaz/openbox/commitdiff
this might fix focusLast which was previously borken when closing a window and the...
authorMikael Magnusson <mikachu@comhem.se>
Wed, 25 Feb 2004 19:07:40 +0000 (19:07 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 25 Feb 2004 19:07:40 +0000 (19:07 +0000)
openbox/client.c

index 293546b758753f21694423f87faf9833ddc75149..538cfbeda95e3112c6e6c5fff6252cd7c264b968 100644 (file)
@@ -415,6 +415,10 @@ void client_unmanage(ObClient *self)
     keyboard_grab_for_client(self, FALSE);
     mouse_grab_for_client(self, FALSE);
 
+    /* potentially fix focusLast */
+    if (config_focus_last)
+        grab_pointer(TRUE, OB_CURSOR_NONE);
+
     /* remove the window from our save set */
     XChangeSaveSet(ob_display, self->window, SetModeDelete);
 
@@ -518,6 +522,9 @@ void client_unmanage(ObClient *self)
      
     /* update the list hints */
     client_set_list();
+
+    if (config_focus_last)
+        grab_pointer(FALSE, OB_CURSOR_NONE);
 }
 
 static void client_urgent_notify(ObClient *self)
This page took 0.027204 seconds and 4 git commands to generate.