X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwayland.hpp;h=3560e2c78ec5b7a82d6d21e322561f22cd71c5df;hb=852cc727023d68ea0a439b68a18b144ce62c8fbe;hp=4ab47091a692ff1097dece87d1e44c01989a0706;hpb=74c2debc328c78a49d5ac779e9a83f3b7459c0a5;p=staging%2Fwindowmanager.git diff --git a/src/wayland.hpp b/src/wayland.hpp index 4ab4709..3560e2c 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -125,10 +125,16 @@ struct size { }; struct rect { - uint32_t w, h; + int32_t w, h; 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 {