aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-08 14:42:16 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-08 14:46:25 -0600
commit1b805ddd38aeb03dbf64886fb9a153f76f4eb8e0 (patch)
treec13a50de318504edbc626c1e644bed3f31d28428
parent94f4ead7dad89433e6087dc19950738c64bbed05 (diff)
downloaddwl-1b805ddd38aeb03dbf64886fb9a153f76f4eb8e0.tar.gz
account border width in configurex11()
Fixes: 13925eb1da8af2c1d23ee9d01efd03c3626081b2
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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);