]> Dogcows Code - chaz/openbox/commitdiff
make client_under_pointer only count windows on the visible desktop. its called halfw...
authorDana Jansens <danakj@orodu.net>
Sun, 10 Jun 2007 00:33:54 +0000 (00:33 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 10 Jun 2007 00:33:54 +0000 (00:33 +0000)
openbox/client.c

index c3e7ae6cee31e6a949a5b61b4482b6f0b9ca5663..634b5180c73ee0637044fcb3de07352458a6324a 100644 (file)
@@ -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))
This page took 0.025413 seconds and 4 git commands to generate.