account border width in configurex11()

Fixes: 13925eb1da
This commit is contained in:
Leonardo Hernández Hernández 2024-08-08 14:42:16 -06:00
parent 94f4ead7da
commit 1b805ddd38
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

2
dwl.c
View File

@ -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);