summaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-22 14:20:16 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commitb54df759ebab6b240d3cd7271ef91e558866a92d (patch)
tree564cad68bc20c6f5ffef7309e89d839d4f7fdb94 /src/wayland.cpp
parent3121d0b9b553ddc709be8b67e91395a796cc6b6e (diff)
wayland: remove surfaces that got destroyed
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r--src/wayland.cpp4
1 files changed, 4 insertions, 0 deletions
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);
+ }
}
//