From 097d02d9d3d4b2eeea11084c54812de9cd7d14c0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 3 Jun 2007 17:58:21 +0000 Subject: add focus option --- openbox/client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'openbox/client.c') 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); -- cgit v1.2.3