Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
da534c8
)
wayland: add genivi::full_rect and operator== for genivi::rect
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 1 Aug 2017 15:48:07 +0000
(17:48 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.hpp
patch
|
blob
|
history
diff --git
a/src/wayland.hpp
b/src/wayland.hpp
index
b5e2d51
..
3560e2c
100644
(file)
--- 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 {