From: Marcus Fritzsch Date: Thu, 22 Jun 2017 12:20:16 +0000 (+0200) Subject: wayland: remove surfaces that got destroyed X-Git-Tag: 4.99.1~346 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=b54df759ebab6b240d3cd7271ef91e558866a92d;p=staging%2Fwindowmanager.git wayland: remove surfaces that got destroyed Signed-off-by: Marcus Fritzsch --- diff --git a/src/wayland.cpp b/src/wayland.cpp index b81f140..38092e3 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -507,6 +507,10 @@ void controller::surface_destroyed(uint32_t id) { void controller::surface_content(uint32_t id, int32_t content_state) { logdebug("genivi::surface %s @ %p s %i", __func__, this->proxy, content_state); + + if (content_state == IVI_CONTROLLER_SURFACE_CONTENT_STATE_CONTENT_REMOVED) { + this->surfaces.erase(id); + } } //