diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-02-07 02:21:26 +0000 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-02-07 02:21:26 +0000 |
commit | 5ae245beedd587a2c9748168ef494abd5a92469c (patch) | |
tree | 4c3a553e79aa2815048fec0bcf862748f51f03dd | |
parent | 089480e0b674156928e63a1db7888c312eeea68b (diff) |
fix minimum size
continuation of 4043fc3093a73174cb63653ba9e742b4738f2ee5
-rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |