summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-26 16:38:40 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit24d12f3f07ecb78a0e4e327720a0de457489e082 (patch)
tree9f5cab4a15d921021d0bb67ad668df28773554cd /src/main.cpp
parent990a23d54e634ef0ab3c7ed2dd49d0f8a0111adc (diff)
main: set layer visibility in init_layout()
Also don't set layer visibility when adding surfaces. Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c343a66..60a243a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -100,6 +100,8 @@ void init_layout(struct conn &c) {
// Set layers fullscreen
l100->set_destination_rectangle(0, 0, o->width, o->height);
l1k->set_destination_rectangle(0, 0, o->width, o->height);
+ l100->set_visibility(1);
+ l1k->set_visibility(1);
// Add layers to screen
s->set_render_order({100, 1000});