summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-30 14:46:29 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-04 16:54:00 +0200
commitda9e102e33c9ac24adde5ef32038f7136230ef88 (patch)
tree4431a8f0fe73cc9da1cbf35c7694b6f14dd1963b /src
parente8a9ad4aa03e55d9b218822fe575fdc6ae97bac8 (diff)
app: use activate_surface() in surface_set_layout()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 78dc7d9..4800d8c 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -313,10 +313,15 @@ void App::surface_set_layout(uint32_t surface_id) {
s->set_destination_rectangle(x, y, w, h);
// XXX: The main_surface will be visible regardless
- s->set_visibility(
- surface_id == static_cast<unsigned>(this->layers.main_surface) ? 1 : 0);
+ //s->set_visibility(
+ // surface_id == static_cast<unsigned>(this->layers.main_surface) ? 1 : 0);
this->controller->layers[layer_id]->add_surface(s.get());
+ if (surface_id == static_cast<unsigned>(this->layers.main_surface)) {
+ logdebug("Activating main_surface (%d)", surface_id);
+ this->activate_surface(surface_id);
+ }
+
logdebug("Surface %u now on layer %u with rect { %d, %d, %d, %d }",
surface_id, layer_id, x, y, w, h);
}