wayland: remove layer on controller::layer_destroyed
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Mon, 26 Jun 2017 14:39:05 +0000 (16:39 +0200)
committerMarcus 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.cpp

index 4f2b026..1d53c26 100644 (file)
@@ -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); });
 }
 
 //                  __