diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-10 00:33:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-10 00:33:54 +0000 |
| commit | 6271c8e975e5c6572c0c2f3a458bad08aa04503d (patch) | |
| tree | cc3a2b53c49c06af304b43a05ef7a0ba8ccd6d49 /openbox/client.c | |
| parent | 128209b1c3dd4be15b8ddf5e6e007a335e987549 (diff) | |
make client_under_pointer only count windows on the visible desktop. its called halfway thru showing/hiding windows on a desktop change when focusLast is off
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index c3e7ae6c..634b5180 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3986,6 +3986,11 @@ ObClient* client_under_pointer() if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = WINDOW_AS_CLIENT(it->data); if (c->frame->visible && + /* check the desktop, this is done during desktop + switching and windows are shown/hidden status is not + reliable */ + (c->desktop == screen_desktop || + c->desktop == DESKTOP_ALL) && /* ignore all animating windows */ !frame_iconify_animating(c->frame) && RECT_CONTAINS(c->frame->area, x, y)) |
