mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 13:46:00 +01:00
compositor: fix getMonitorFromVector getting wrong monitor (#6010)
This commit is contained in:
parent
ed3a888fc2
commit
3529fbc6d4
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
||||||
#define DYNLISTENER(name) CHyprWLListener hyprListener_##name
|
#define DYNLISTENER(name) CHyprWLListener hyprListener_##name
|
||||||
#define DYNMULTILISTENER(name) wl_listener listen_##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))
|
#define DELTALESSTHAN(a, b, delta) (abs((a) - (b)) < (delta))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue