- auto const s = c->surfaces.find(id);
- if (s != c->surfaces.end())
- s->second->set_destination_rectangle(
- 800 / 2 - width / 2, 600 / 2 - height / 2, width, height);
- add_task("fullscreen surface", [id, width, height](struct controller *c) {
+ add_task("fullscreen surface", [id](struct controller *c) {
+ c->surfaces[id]->set_destination_rectangle(0, 0, c->output_size.w, c->output_size.h);
+ c->surfaces[id]->set_visibility(1);
+ c->layers[100]->add_surface(c->surfaces[id].get());
+ c->layers[100]->set_visibility(1);