summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-21 19:20:49 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-21 20:15:00 -0600
commit32e66f45827cc8016ca2cef65ba61840f43fcc85 (patch)
tree8f1a0d51777bfd43eb544373b0edf1bed0d8ccfb /dwl.c
parent2751a6195d5b659c8538b2b16fa157e7b920c8c3 (diff)
resize clients on commit
Fixes: https://github.com/djpohly/dwl/issues/515 This reverts commit 4567979b16b0509bb80b6102ecb9b601b3cf6fa1.
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 51ada7d..517062a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -738,6 +738,9 @@ commitnotify(struct wl_listener *listener, void *data)
{
Client *c = wl_container_of(listener, c, commit);
+ if (client_surface(c)->mapped)
+ 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)
c->resize = 0;