From 1b805ddd38aeb03dbf64886fb9a153f76f4eb8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Thu, 8 Aug 2024 14:42:16 -0600 Subject: [PATCH] account border width in configurex11() Fixes: 13925eb1da8af2c1d23ee9d01efd03c3626081b2 --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index f1ab64b..82a01d8 100644 --- a/dwl.c +++ b/dwl.c @@ -3091,7 +3091,7 @@ configurex11(struct wl_listener *listener, void *data) } if ((c->isfloating && c != grabc) || client_is_unmanaged(c) || !c->mon->lt[c->mon->sellt]->arrange) - resize(c, (struct wlr_box){.x = event->x, .y = event->y, + resize(c, (struct wlr_box){.x = event->x - c->bw, .y = event->y - c->bw, .width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0); else arrange(c->mon);