mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-14 04:47:30 -08:00
Revert "don't resize clients on commit"
This reverts commit 4567979b16
.
This commit is contained in:
parent
994d14c20b
commit
74fc9891fa
1 changed files with 6 additions and 0 deletions
6
dwl.c
6
dwl.c
|
@ -837,6 +837,12 @@ void
|
|||
commitnotify(struct wl_listener *listener, void *data)
|
||||
{
|
||||
Client *c = wl_container_of(listener, c, commit);
|
||||
struct wlr_box box = {0};
|
||||
client_get_geometry(c, &box);
|
||||
|
||||
if (c->mon && !wlr_box_empty(&box) && (box.width != c->geom.width - 2 * c->bw
|
||||
|| box.height != c->geom.height - 2 * c->bw))
|
||||
c->isfloating ? resize(c, c->geom, 1) : arrange(c->mon);
|
||||
|
||||
/* mark a pending resize as completed */
|
||||
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)
|
||||
|
|
Loading…
Reference in a new issue