summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-26 16:39:05 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit0e2fc19254f9203921f8e2ad7ae338725c21a15e (patch)
tree8bee386a75cfdfd4dd87d879fed072ae8143a722 /src
parent24d12f3f07ecb78a0e4e327720a0de457489e082 (diff)
wayland: remove layer on controller::layer_destroyed
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/wayland.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index 4f2b026..1d53c26 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -387,6 +387,8 @@ void controller::layer_screen(uint32_t id, struct wl_output *screen) {
void controller::layer_destroyed(uint32_t id) {
logdebug("genivi::layer %s @ %p", __func__, this->proxy);
+ add_task("remove layer",
+ [id](struct controller *c) { c->layers.erase(id); });
}
// __