summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgodalming123 <r2hk9ahnf@relay.firefox.com>2023-02-17 19:33:44 +0000
committerLeonardo Hernández <leohdz172@proton.me>2023-02-18 18:47:44 -0600
commit737688a6b1da09c4276d3e26989305f287389505 (patch)
tree53fceba518efd9427c8fa1959735e1eccc8a56d7
parentf8373ccf2581fa481602bbb7528ba8871f6d5c85 (diff)
fix spelling
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 27d051f..ac262b2 100644
--- a/dwl.c
+++ b/dwl.c
@@ -423,8 +423,8 @@ applybounds(Client *c, struct wlr_box *bbox)
/* try to set size hints */
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. */
+ /* Some clients set their max size to INT_MAX, which does not violate the
+ * protocol but its unnecesary, as they can set their max size to zero. */
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 */