mirror of
https://github.com/hyprwm/hyprutils.git
synced 2026-05-07 01:58:00 +02:00
fix: CBox::overlaps should not count adjacent boxes
This commit is contained in:
parent
afb9009312
commit
a760067206
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ CBox Hyprutils::Math::CBox::intersection(const CBox& other) const {
|
|||
}
|
||||
|
||||
bool Hyprutils::Math::CBox::overlaps(const CBox& other) const {
|
||||
return (other.x + other.w >= x) && (x + w >= other.x) && (other.y + other.h >= y) && (y + h >= other.y);
|
||||
return (other.x + other.w > x) && (x + w > other.x) && (other.y + other.h > y) && (y + h > other.y);
|
||||
}
|
||||
|
||||
bool Hyprutils::Math::CBox::inside(const CBox& bound) const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue