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
Failed to generate hash of commit

3
dwl.c
View file

@ -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;