From a11e85393516f3b249ab42999120d9df7f90119e Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 10 Dec 2024 11:33:55 -0500 Subject: [PATCH] fix damage tracking --- src/macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.hpp b/src/macros.hpp index 4a319569..d1abe6d7 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -36,7 +36,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))