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:
0e2fc19
)
wayland: less lookup-y controller_layer()
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Mon, 26 Jun 2017 14:40:51 +0000
(16:40 +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
1d53c26
..
119b19f
100644
(file)
--- a/
src/wayland.cpp
+++ b/
src/wayland.cpp
@@
-229,7
+229,8
@@
void controller::controller_screen(uint32_t id,
void controller::controller_layer(uint32_t id) {
logdebug("genivi::controller @ %p layer %u (%x)", this->proxy, id, id);
- this->layers[id] = std::make_unique<struct layer>(id, this);
+ auto &l = this->layers[id] = std::make_unique<struct layer>(id, this);
+ l->clear_surfaces();
}
void controller::controller_surface(uint32_t id) {