summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-05-24 14:46:03 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-05-27 00:19:17 -0500
commit2623a96ebf4c0b43e65d3ff3d7c1b0e56634acf3 (patch)
tree83e200ce1b909542acd3e7f57b45d0066a0800c9
parent52e0d00942584b4a8a9ca1f59ffdea26277604ed (diff)
call client_set-size() if client has a resize
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index d0f5afc..f061ebe 100644
--- a/dwl.c
+++ b/dwl.c
@@ -784,6 +784,8 @@ commitnotify(struct wl_listener *listener, void *data)
/* mark a pending resize as completed */
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)
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