aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
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-21 21:41:38 -0600
commitee1a72211d066de3766980d0452945df0a50334c (patch)
tree486eacfa7ff51ef7cddd6bd5c9f577f8c128e764 /dwl.c
parent2bc01debdcf2c6cf13583c6a67f8a6a824446408 (diff)
only skip frames if there are visible clients that have a resize
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 0b82e42..cd9e8d5 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1624,9 +1624,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;