diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-06 19:14:12 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-06 22:16:00 -0500 |
commit | ff70337c163dfadea2c997a9b030e978fb463c2d (patch) | |
tree | aeeb09f72b5f73334500472ca8a9a7062ded2260 | |
parent | 7cc6c640e2412935bf195ec55dafeb5852c71dd1 (diff) |
check current and pending geometry to set c->resize to zero
Fixes #260
-rw-r--r-- | dwl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -792,10 +792,10 @@ commitnotify(struct wl_listener *listener, void *data) Client *c = wl_container_of(listener, c, commit); /* 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 + || (c->surface.xdg->current.geometry.width == c->surface.xdg->pending.geometry.width + && c->surface.xdg->current.geometry.height == c->surface.xdg->pending.geometry.height))) c->resize = 0; - else if (c->resize) - c->resize = client_set_size(c, c->geom.width - 2 * c->bw, c->geom.height - 2 * c->bw); } void |