Also don't set layer visibility when adding surfaces.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
// 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});
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);
});
}