mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
correctly check if the scene node is enabled in client_is_rendered_on_mon
This commit is contained in:
parent
0e897608a1
commit
d6c102d9db
1 changed files with 2 additions and 1 deletions
3
client.h
3
client.h
|
@ -241,7 +241,8 @@ client_is_rendered_on_mon(Client *c, Monitor *m)
|
||||||
* but rather actual displaying of the pixels.
|
* but rather actual displaying of the pixels.
|
||||||
* Usually VISIBLEON suffices and is also faster. */
|
* Usually VISIBLEON suffices and is also faster. */
|
||||||
struct wlr_surface_output *s;
|
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;
|
return 0;
|
||||||
wl_list_for_each(s, &client_surface(c)->current_outputs, link)
|
wl_list_for_each(s, &client_surface(c)->current_outputs, link)
|
||||||
if (s->output == m->wlr_output)
|
if (s->output == m->wlr_output)
|
||||||
|
|
Loading…
Reference in a new issue