summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalanix <palanixyt@gmail.com>2022-09-24 13:37:05 +0200
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-03 13:14:10 -0600
commit30c24a53ad2aaa842bc3b028ba0b98e3362dad7c (patch)
treeac9be511ce4056e7d73a61694b58f65a3e707e79
parent017bb7d7521f68d37bfe656c10f45edbcc92dd61 (diff)
remove unneeded changes in commitnotify()
-rw-r--r--dwl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/dwl.c b/dwl.c
index c409187..cea34cc 100644
--- a/dwl.c
+++ b/dwl.c
@@ -729,14 +729,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;
}