Revert "Revert "remove unneeded changes in commitnotify()""

This reverts commit d42a977b5ba8ae09753c7f6fcf4e2044bac7d92e.
This commit is contained in:
Leonardo Hernández Hernández 2022-12-06 14:48:02 -06:00
parent c8cd9fd3c6
commit f71508ad68
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

7
dwl.c
View File

@ -758,14 +758,9 @@ commitnotify(struct wl_listener *listener, void *data)
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))
arrange(c->mon);
/* mark a pending resize as completed */
if (c->resize && (c->resize <= c->surface.xdg->current.configure_serial
|| (c->surface.xdg->current.geometry.width == c->surface.xdg->pending.geometry.width
&& c->surface.xdg->current.geometry.height == c->surface.xdg->pending.geometry.height)))
if (c->resize && (c->resize <= c->surface.xdg->current.configure_serial))
c->resize = 0;
}