mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Fix wlr_box_contains_point comparison
This commit is contained in:
parent
3444f43c16
commit
f8a831859f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue