only mark pending resizes as completed checking the configure serial

This commit is contained in:
Leonardo Hernández Hernández 2022-12-12 10:50:02 -06:00
parent 1b5784eaaa
commit dd5a0547c5
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

4
dwl.c
View File

@ -782,9 +782,7 @@ commitnotify(struct wl_listener *listener, void *data)
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;
}