diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-08 20:51:40 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-10-08 20:51:40 -0500 |
commit | 765656902fdaaf8c4320d4a16ea8cba4294656a7 (patch) | |
tree | 957a743e83d9e4588c474e24bf4da3858c881096 | |
parent | 1438dfc1509b22612166407c565f65f635d3ab97 (diff) |
use `/* */` for comments in applybounds()
-rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -392,9 +392,9 @@ applybounds(Client *c, struct wlr_box *bbox) c->geom.height = MAX(min.height + (2 * 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 + if (max.width > 0 && !(2 * c->bw > INT_MAX - max.width)) /* Checks for overflow */ c->geom.width = MIN(max.width + (2 * c->bw), c->geom.width); - if (max.height > 0 && !(2 * c->bw > INT_MAX - max.height)) // Checks for overflow + if (max.height > 0 && !(2 * c->bw > INT_MAX - max.height)) /* Checks for overflow */ c->geom.height = MIN(max.height + (2 * c->bw), c->geom.height); } |