summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-16 21:21:40 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-17 11:03:31 -0600
commitd6c102d9db2a2f3dc9d1da96d87e306129237a8e (patch)
treeaf177e298b040ed38590e94dbe012b018b3fb362
parent0e897608a151da10f4ddcd2a528c618e5f60d9cd (diff)
correctly check if the scene node is enabled in client_is_rendered_on_mon
-rw-r--r--client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.h b/client.h
index 0fdd774..a5bec71 100644
--- a/client.h
+++ b/client.h
@@ -241,7 +241,8 @@ client_is_rendered_on_mon(Client *c, Monitor *m)
* but rather actual displaying of the pixels.
* Usually VISIBLEON suffices and is also faster. */
struct wlr_surface_output *s;
- if (!c->scene->node.enabled)
+ int unused_lx, unused_ly;
+ if (!wlr_scene_node_coords(&c->scene->node, &unused_lx, &unused_ly))
return 0;
wl_list_for_each(s, &client_surface(c)->current_outputs, link)
if (s->output == m->wlr_output)