summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-01 17:51:20 +0000
committerDana Jansens <danakj@orodu.net>2003-10-01 17:51:20 +0000
commitc88e66b8fff4b51a26392a8a45647af8233d4d9f (patch)
tree17ed8ba673fc3ba3f3bf341c78a1dfee724dea53 /openbox
parent6f5292c87ece138a2b80d102ba0919b105b1839a (diff)
use frame->visible instead of the desktop number
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c
index a17c73da..8b008e9b 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -3175,7 +3175,7 @@ ObClient* client_under_pointer()
for (it = stacking_list; it != NULL; it = it->next) {
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = WINDOW_AS_CLIENT(it->data);
- if (c->desktop == screen_desktop &&
+ if (c->frame->visible &&
RECT_CONTAINS(c->frame->area, x, y)) {
ret = c;
break;