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:
3466744
)
main: also show layer info on line break
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Fri, 23 Jun 2017 12:10:21 +0000
(14:10 +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/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
20f04e5
..
c575615
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-53,6
+53,17
@@
int check_events(struct wl::display *d, struct conn *c, int fd) {
}
puts("\b\b ");
}
+
+ if (!c->c->layers.empty()) {
+ puts("Layers:");
+ for (auto const &i : c->c->layers) {
+ struct genivi::rect const &r = i.second->dst_rect;
+ struct genivi::size const &s = i.second->size;
+ printf("%d [%ux%u] (%ux%u@%dx%d), ", i.first, s.w, s.h, r.w, r.h,
+ r.x, r.y);
+ }
+ puts("\b\b ");
+ }
}
}