summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-23 14:10:21 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit8fa57a084f696f454f8940d34243e8e9ac6dba34 (patch)
treec21fab894ab0c95ec1fb56a6ec18f91a35b46622 /src/main.cpp
parent34667441438c8f3797ad9d9a6a293146103a0fc7 (diff)
main: also show layer info on line break
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 20f04e5..c575615 100644
--- 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 ");
+ }
}
}