diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wayland.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index 119b19f..16e2361 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -238,9 +238,9 @@ void controller::controller_surface(uint32_t id) { this->surfaces[id] = std::make_unique<struct surface>(id, this); 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); + auto &s = c->surfaces[id]; + s->set_destination_rectangle(0, 0, c->output_size.w, c->output_size.h); + s->set_visibility(1); uint32_t lid = id == 0x16180 ? 1000 : 100; c->layers[lid]->add_surface(s.get()); logdebug("Surface %u now fullscreen on layer %u", id, lid); |