summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wayland.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wayland.hpp b/src/wayland.hpp
index b5e2d51..3560e2c 100644
--- a/src/wayland.hpp
+++ b/src/wayland.hpp
@@ -129,6 +129,12 @@ struct rect {
int32_t x, y;
};
+static const constexpr rect full_rect = rect{-1, -1, 0, 0};
+
+inline bool operator == (struct rect a, struct rect b) {
+ return a.w == b.w && a.h == b.h && a.x == b.x && a.y == b.y;
+}
+
struct controller;
struct controller_child {