diff options
-rw-r--r-- | src/wayland.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index 1d53c26..119b19f 100644 --- 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) { |