summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/wayland.cpp3
2 files changed, 3 insertions, 2 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});
diff --git a/src/wayland.cpp b/src/wayland.cpp
index c2c5cbe..4f2b026 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -241,8 +241,7 @@ void controller::controller_surface(uint32_t id) {
c->output_size.h);
c->surfaces[id]->set_visibility(1);
uint32_t lid = id == 0x16180 ? 1000 : 100;
- c->layers[lid]->add_surface(c->surfaces[id].get());
- c->layers[lid]->set_visibility(1);
+ c->layers[lid]->add_surface(s.get());
logdebug("Surface %u now fullscreen on layer %u", id, lid);
});
}