From 3529fbc6d4db298c4d50a39732e59ca38b463c9f Mon Sep 17 00:00:00 2001 From: Sungyoon Cho Date: Sat, 11 May 2024 18:35:20 +0900 Subject: [PATCH] compositor: fix getMonitorFromVector getting wrong monitor (#6010) --- src/macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.hpp b/src/macros.hpp index b57d9737..66dfe783 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -35,7 +35,7 @@ #define DYNLISTENER(name) CHyprWLListener hyprListener_##name #define DYNMULTILISTENER(name) wl_listener listen_##name -#define VECINRECT(vec, x1, y1, x2, y2) ((vec).x >= (x1) && (vec).x <= (x2) && (vec).y >= (y1) && (vec).y <= (y2)) +#define VECINRECT(vec, x1, y1, x2, y2) ((vec).x >= (x1) && (vec).x < (x2) && (vec).y >= (y1) && (vec).y < (y2)) #define DELTALESSTHAN(a, b, delta) (abs((a) - (b)) < (delta))