diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-03 17:58:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-03 17:58:21 +0000 |
| commit | 097d02d9d3d4b2eeea11084c54812de9cd7d14c0 (patch) | |
| tree | 9d98e84f863f7b27a562cfa6a069dc609bf1e0bf /openbox/client.c | |
| parent | e61ad3581fa4e640c32fb78408a17712a7155aa1 (diff) | |
add <underMouse> focus option
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 8 |
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); |
