fix minimum size

continuation of 4043fc3093a73174cb63653ba9e742b4738f2ee5
This commit is contained in:
Leonardo Hernández Hernández 2024-02-07 02:21:26 +00:00
parent 089480e0b6
commit 5ae245beed
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

4
dwl.c
View File

@ -412,8 +412,8 @@ void
applybounds(Client *c, struct wlr_box *bbox)
{
/* set minimum possible */
c->geom.width = MAX(1, c->geom.width);
c->geom.height = MAX(1, c->geom.height);
c->geom.width = MAX(1 + 2 * (int)c->bw, c->geom.width);
c->geom.height = MAX(1 + 2 * (int)c->bw, c->geom.height);
if (c->geom.x >= bbox->x + bbox->width)
c->geom.x = bbox->x + bbox->width - c->geom.width;