Skip to content

Commit

Permalink
resize clients on commit
Browse files Browse the repository at this point in the history
Fixes: djpohly#515
This reverts commit 4567979.
  • Loading branch information
sevz17 committed Nov 22, 2023
1 parent 2751a61 commit 32e66f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32e66f4

Please sign in to comment.