diff options
author | emersion <contact@emersion.fr> | 2018-05-29 19:03:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 19:03:29 +0100 |
commit | 87fe9f3466bddeef4b6fb288a52b6b3bd288b3c5 (patch) | |
tree | cc03fb9c05d4c689a51601760da44e487c9d8af7 | |
parent | e1f56538a8862f05cc9ad1d44cd47bc6ed5e6387 (diff) | |
parent | f8a831859f7a4a2725d55c3faa093c1b50382a2b (diff) |
Merge pull request #1014 from RyanDwyer/fix-wlr-box-contains-point
Fix wlr_box_contains_point comparison
-rw-r--r-- | types/wlr_box.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_box.c b/types/wlr_box.c index 2ea743d0..c92b0aa4 100644 --- a/types/wlr_box.c +++ b/types/wlr_box.c @@ -61,8 +61,8 @@ bool wlr_box_contains_point(const struct wlr_box *box, double x, double y) { if (wlr_box_empty(box)) { return false; } else { - return x >= box->x && x <= box->x + box->width && - y >= box->y && y <= box->y + box->height; + return x >= box->x && x < box->x + box->width && + y >= box->y && y < box->y + box->height; } } |