don't resize clients on commit

It creates an infinite commit-resize loop when scale != 1
This commit is contained in:
Leonardo Hernández Hernández 2023-08-18 21:37:22 -06:00
parent ca4a97b933
commit 4567979b16
No known key found for this signature in database
GPG key ID: E538897EE11B9624

6
dwl.c
View file

@ -768,12 +768,6 @@ void
commitnotify(struct wl_listener *listener, void *data) commitnotify(struct wl_listener *listener, void *data)
{ {
Client *c = wl_container_of(listener, c, commit); 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 */ /* 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)