mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-11-12 16:13:20 +00:00
Fix typo
This commit is contained in:
@@ -523,7 +523,7 @@ applybounds(Client *c, struct wlr_box *bbox)
|
|||||||
c->geom.width = MAX(min.width + 2 * (int)c->bw, c->geom.width);
|
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);
|
c->geom.height = MAX(min.height + 2 * (int)c->bw, c->geom.height);
|
||||||
/* Some clients set their max size to INT_MAX, which does not violate the
|
/* Some clients set their max size to INT_MAX, which does not violate the
|
||||||
* protocol but it's unnecesary, as they can set their max size to zero. */
|
* protocol but it's unnecessary, as they can set their max size to zero. */
|
||||||
if (max.width > 0 && 2 * (int)c->bw <= INT_MAX - max.width) /* Checks for overflow */
|
if (max.width > 0 && 2 * (int)c->bw <= INT_MAX - max.width) /* Checks for overflow */
|
||||||
c->geom.width = MIN(max.width + 2 * (int)c->bw, c->geom.width);
|
c->geom.width = MIN(max.width + 2 * (int)c->bw, c->geom.width);
|
||||||
if (max.height > 0 && 2 * (int)c->bw <= INT_MAX - max.height) /* Checks for overflow */
|
if (max.height > 0 && 2 * (int)c->bw <= INT_MAX - max.height) /* Checks for overflow */
|
||||||
|
|||||||
Reference in New Issue
Block a user