diff --git a/types/wlr_box.c b/types/wlr_box.c index 2ea743d0a..c92b0aa47 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; } }