math: CBox::overlaps should not count adjacent boxes (#108)

This commit is contained in:
Lee Bousfield 2026-04-26 13:14:32 -05:00 committed by GitHub
parent fe6183f314
commit ee9ef3d43e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {