From: Marcus Fritzsch Date: Tue, 1 Aug 2017 15:48:07 +0000 (+0200) Subject: wayland: add genivi::full_rect and operator== for genivi::rect X-Git-Tag: 4.99.1~190 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=852cc727023d68ea0a439b68a18b144ce62c8fbe;hp=da534c85f4dd4bb83a7f364a3b93a2ba156c7bcb;p=staging%2Fwindowmanager.git wayland: add genivi::full_rect and operator== for genivi::rect Signed-off-by: Marcus Fritzsch --- 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 {