compositor: fix getMonitorFromVector getting wrong monitor (#6010)

This commit is contained in:
Sungyoon Cho
2024-05-11 18:35:20 +09:00
committed by GitHub
parent ed3a888fc2
commit 3529fbc6d4

View File

@@ -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))