summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;