Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3121d0b
)
wayland: remove surfaces that got destroyed
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Thu, 22 Jun 2017 12:20:16 +0000
(14:20 +0200)
committer
Marcus 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
patch
|
blob
|
history
diff --git
a/src/wayland.cpp
b/src/wayland.cpp
index
b81f140
..
38092e3
100644
(file)
--- 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);
+ }
}
//