aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-30 14:15:21 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-30 14:15:21 -0600
commit6d0e3a51987ebda89193cf52996227110ad7068c (patch)
tree8652e7e67639bc0d82cb985691d61e934f998e05
parent5347ed663de57f624abe887dc761949eb7169986 (diff)
check if a client is resizing before checking if it's visible
It's not like it's noticeable, but theoretically this is faster
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 9b6be9f..5189757 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1834,7 +1834,7 @@ rendermon(struct wl_listener *listener, void *data)
/* Render if no XDG clients have an outstanding resize and are visible on
* this monitor. */
wl_list_for_each(c, &clients, link)
- if (client_is_rendered_on_mon(c, m) && (!c->isfloating && c->resize) && !client_is_stopped(c))
+ if (c->resize && !c->isfloating && client_is_rendered_on_mon(c, m) && !client_is_stopped(c))
goto skip;
if (!wlr_scene_output_commit(m->scene_output))
return;