X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwayland.cpp;h=38092e3e67a9a18f2a95d665f4b3a5553f3182ec;hb=b54df759ebab6b240d3cd7271ef91e558866a92d;hp=b81f1404a54876f9987938f43ae538662abae2eb;hpb=3121d0b9b553ddc709be8b67e91395a796cc6b6e;p=staging%2Fwindowmanager.git 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); + } } //