]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
add <underMouse> focus option
[chaz/openbox] / openbox / client.c
index a338df16b956c1d50ed621aa48c1a8564f1841ba..9b4932a0fe2f1c940db314166b04a2982ccab68c 100644 (file)
@@ -644,9 +644,11 @@ void client_unmanage(ObClient *self)
     /* flush to send the hide to the server quickly */
     XFlush(ob_display);
 
-    /* ignore enter events from the unmap so it doesnt mess with the
-       focus */
-    event_ignore_all_queued_enters();
+    if (!client_focused(self) || !config_focus_under_mouse) {
+        /* ignore enter events from the unmap so it doesnt mess with the
+           focus */
+        event_ignore_all_queued_enters();
+    }
 
     mouse_grab_for_client(self, FALSE);
 
This page took 0.019598 seconds and 4 git commands to generate.