resize clients on commit

Fixes: https://github.com/djpohly/dwl/issues/515
This reverts commit 4567979b16.
This commit is contained in:
Leonardo Hernández Hernández 2023-11-21 19:20:49 -06:00
parent 2751a6195d
commit 32e66f4582
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

3
dwl.c
View File

@ -738,6 +738,9 @@ commitnotify(struct wl_listener *listener, void *data)
{ {
Client *c = wl_container_of(listener, c, commit); 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 */ /* mark a pending resize as completed */
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial) if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)
c->resize = 0; c->resize = 0;