From a7600672069b3e4960cd3fd008f03e34ecc5c8db Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sun, 26 Apr 2026 16:38:02 +0000 Subject: [PATCH] fix: CBox::overlaps should not count adjacent boxes --- src/math/Box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/Box.cpp b/src/math/Box.cpp index 16fadfb..6f93e0c 100644 --- a/src/math/Box.cpp +++ b/src/math/Box.cpp @@ -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 {