~ruther/dwl

a7f77779078328e40eff41d3ee8102ebc6d41af2 — Leonardo Hernández Hernández 3 years ago 40db9c8
only skip frames if there are visible clients that have a resize
1 files changed, 4 insertions(+), 2 deletions(-)

M dwl.c
M dwl.c => dwl.c +4 -2
@@ 1497,9 1497,11 @@ rendermon(struct wl_listener *listener, void *data)
	int skip = 0;
	struct timespec now;

	/* Render if no XDG clients have an outstanding resize. */
	/* Render if no XDG clients have an outstanding resize and are visible on
	 * this monitor.
	 */
	wl_list_for_each(c, &clients, link)
		skip = skip || c->resize;
		skip = skip || (c->resize && VISIBLEON(c, m));
	if (!skip && !wlr_scene_output_commit(m->scene_output))
		return;


Do not follow this link