fix: CBox::overlaps should not count adjacent boxes

This commit is contained in:
Lee Bousfield 2026-04-26 16:38:02 +00:00
parent afb9009312
commit a760067206

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 {