mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-26 00:52:21 +00:00
Fix wlr_box_contains_point comparison
This commit is contained in:
parent
3444f43c16
commit
f8a831859f
@ -61,8 +61,8 @@ bool wlr_box_contains_point(const struct wlr_box *box, double x, double y) {
|
|||||||
if (wlr_box_empty(box)) {
|
if (wlr_box_empty(box)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
return x >= box->x && x <= box->x + box->width &&
|
return x >= box->x && x < box->x + box->width &&
|
||||||
y >= box->y && y <= box->y + box->height;
|
y >= box->y && y < box->y + box->height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user