aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-14 13:10:14 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-27 23:09:46 -0600
commitbbc00d88a45df249009c9946dfd88285eecac0c5 (patch)
treecaa7e1c4bb23ee59f23a0c8f3ac4bfbc7797d87f
parent54b546121b3221e02d31a2af0bb0ce859376ab93 (diff)
downloaddwl-bbc00d88a45df249009c9946dfd88285eecac0c5.tar.gz
remove a redundant check
resize() now does the same check
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 76d3fca..4a11657 100644
--- a/dwl.c
+++ b/dwl.c
@@ -809,8 +809,7 @@ commitnotify(struct wl_listener *listener, void *data)
return;
}
- if (client_surface(c)->mapped && c->mon)
- resize(c, c->geom, (c->isfloating && !c->isfullscreen));
+ resize(c, c->geom, (c->isfloating && !c->isfullscreen));
/* mark a pending resize as completed */
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)