diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-28 12:34:43 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | ac5cfd54d5056b645781ef982ce3109581e9edef (patch) | |
tree | e04eaa1f8932e5fcfd7d1bbb5ecee753a39d648a /src/app.cpp | |
parent | f690f1bb1a9736ec13cbe1dad721b0bbc1c3af67 (diff) |
app/wayland: move surface setup as is to app controller hook
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app.cpp b/src/app.cpp index e28d8d0..3f62575 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -219,6 +219,14 @@ int App::init_layout() { void App::surface_created(uint32_t surface_id) { DB("surface_id is " << surface_id); + this->controller->add_task("fullscreen surface", [surface_id](struct genivi::controller *c) { + auto &s = c->surfaces[surface_id]; + s->set_destination_rectangle(0, 0, c->output_size.w, c->output_size.h); + s->set_visibility(1); + uint32_t lid = surface_id == 0x16180 ? 1000 : 100; + c->layers[lid]->add_surface(s.get()); + logdebug("Surface %u now fullscreen on layer %u", surface_id, lid); + }); } void App::surface_removed(uint32_t surface_id) { |