diff options
author | Sungyoon Cho <[email protected]> | 2024-05-11 18:35:20 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-11 10:35:20 +0100 |
commit | 3529fbc6d4db298c4d50a39732e59ca38b463c9f (patch) | |
tree | 5f5a07eb020b531ffedb76d83a10a3cd7114a59d | |
parent | ed3a888fc274e09a5097ebbe3d206e4bc85bbb87 (diff) | |
download | Hyprland-3529fbc6d4db298c4d50a39732e59ca38b463c9f.tar.gz Hyprland-3529fbc6d4db298c4d50a39732e59ca38b463c9f.zip |
compositor: fix getMonitorFromVector getting wrong monitor (#6010)
-rw-r--r-- | src/macros.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |