From 3187dc90b7d8ee0066e8405f9f0ba93d9793d185 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Mon, 26 Jun 2017 16:40:51 +0200 Subject: wayland: less lookup-y controller_layer() Signed-off-by: Marcus Fritzsch --- src/wayland.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(id, this); + auto &l = this->layers[id] = std::make_unique(id, this); + l->clear_surfaces(); } void controller::controller_surface(uint32_t id) { -- cgit 1.2.3-korg