refactor: clang-tidy in compositor (#9241)

Co-authored-by: Alexandr Krylov <t@ruenya.nix>
This commit is contained in:
Alexander
2025-02-02 20:34:26 +03:00
committed by GitHub
parent 373108102c
commit 70d94fec13
4 changed files with 40 additions and 60 deletions

View File

@@ -38,7 +38,8 @@
#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 VECNOTINRECT(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))