use frame->visible instead of the desktop number
This commit is contained in:
parent
6f5292c87e
commit
c88e66b8ff
1 changed files with 1 additions and 1 deletions
|
@ -3175,7 +3175,7 @@ ObClient* client_under_pointer()
|
||||||
for (it = stacking_list; it != NULL; it = it->next) {
|
for (it = stacking_list; it != NULL; it = it->next) {
|
||||||
if (WINDOW_IS_CLIENT(it->data)) {
|
if (WINDOW_IS_CLIENT(it->data)) {
|
||||||
ObClient *c = WINDOW_AS_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)) {
|
RECT_CONTAINS(c->frame->area, x, y)) {
|
||||||
ret = c;
|
ret = c;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue