~ruther/dwl

d6c102d9db2a2f3dc9d1da96d87e306129237a8e — Leonardo Hernández Hernández 1 year, 6 months ago 0e89760
correctly check if the scene node is enabled in client_is_rendered_on_mon
1 files changed, 2 insertions(+), 1 deletions(-)

M client.h
M client.h => client.h +2 -1
@@ 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)

Do not follow this link