aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-08-18 21:37:22 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-08-18 21:37:22 -0600
commit4567979b16b0509bb80b6102ecb9b601b3cf6fa1 (patch)
tree716ba0fc35faaf7201c68555d98a39a10e24c9f1
parentca4a97b9335296c40f558baa1ead14578b166d70 (diff)
don't resize clients on commit
It creates an infinite commit-resize loop when scale != 1
-rw-r--r--dwl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/dwl.c b/dwl.c
index 93f66ef..655ded0 100644
--- a/dwl.c
+++ b/dwl.c
@@ -768,12 +768,6 @@ void
commitnotify(struct wl_listener *listener, void *data)
{
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 */
if (c->resize && c->resize <= c->surface.xdg->current.configure_serial)