summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c
index a338df16..9b4932a0 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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);