From ee9ef3d43ed194cae1b55edb716a696a45c37b48 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sun, 26 Apr 2026 13:14:32 -0500 Subject: [PATCH] math: CBox::overlaps should not count adjacent boxes (#108) --- 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 {