diff options
author | 2017-06-23 14:47:00 +0200 | |
---|---|---|
committer | 2017-08-08 17:24:00 +0200 | |
commit | c84963877f8042e0609d9bba6a78eb55af836dc4 (patch) | |
tree | e6f16cae93f7238380c7a1ef75b2c89e6b68b090 | |
parent | 432f97a9d47eb6ddd5b347d20b8548593cf66e8b (diff) |
wayland: remove surface immediately on surface_destroyed event
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r-- | src/wayland.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index e22f4a6..625dbb0 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -551,6 +551,7 @@ void controller::surface_stats(uint32_t id, uint32_t redraw_count, void controller::surface_destroyed(uint32_t id) { logdebug("genivi::surface %s @ %p", __func__, this->proxy); + this->surfaces.erase(id); } void controller::surface_content(uint32_t id, int32_t content_state) { |