summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-21 21:17:58 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-23 18:22:39 -0600
commita7f77779078328e40eff41d3ee8102ebc6d41af2 (patch)
tree5cd2f097b4f8b44f845bf9f76ad87f4ed601b80e
parent40db9c88eaa4c32832c0bf7f7da56b8b73598519 (diff)
only skip frames if there are visible clients that have a resize
-rw-r--r--dwl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index c6b8ab9..222cb62 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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;