properly resize on configurex11

This commit is contained in:
korei999 2024-03-24 12:54:32 +02:00 committed by Leonardo Hernández Hernández
parent 3a95d4ed03
commit f7154d539d
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

2
dwl.c
View File

@ -2962,7 +2962,7 @@ configurex11(struct wl_listener *listener, void *data)
} }
if (c->isfloating || client_is_unmanaged(c)) if (c->isfloating || client_is_unmanaged(c))
resize(c, (struct wlr_box){.x = event->x, .y = event->y, resize(c, (struct wlr_box){.x = event->x, .y = event->y,
.width = event->width, .height = event->height}, 0); .width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0);
else else
arrange(c->mon); arrange(c->mon);
} }