aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-02 10:06:40 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-12-02 10:06:40 -0600
commitce1d040586ee599cf46c3b4e1660acc86bb36395 (patch)
tree496af887e028d3e107a9dd1b9b27685e9f103e01
parentb4fb1f77c768fb7bd568d3cc67c59dcfdb7cae28 (diff)
parent87d87cc4041a997d00ebf234ca5118b9248a3b95 (diff)
Merge branch 'main' of github.com:djpohly/dwl
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 3f6db50..179c1b6 100644
--- a/dwl.c
+++ b/dwl.c
@@ -387,8 +387,8 @@ applybounds(Client *c, struct wlr_box *bbox)
struct wlr_box min = {0}, max = {0};
client_get_size_hints(c, &max, &min);
/* try to set size hints */
- c->geom.width = MAX(min.width + (2 * c->bw), c->geom.width);
- c->geom.height = MAX(min.height + (2 * c->bw), c->geom.height);
+ c->geom.width = MAX(min.width + (2 * (int)c->bw), c->geom.width);
+ c->geom.height = MAX(min.height + (2 * (int)c->bw), c->geom.height);
/* Some clients set them max size to INT_MAX, which does not violates
* the protocol but its innecesary, they can set them max size to zero. */
if (max.width > 0 && !(2 * c->bw > INT_MAX - max.width)) /* Checks for overflow */