| 102 | } |
| 103 | |
| 104 | void display() |
| 105 | { |
| 106 | if (!output) |
| 107 | { |
| 108 | LOGW("Trying to display lock_surface on removed output"); |
| 109 | return; |
| 110 | } |
| 111 | |
| 112 | auto layer_node = output->node_for_layer(wf::scene::layer::LOCK); |
| 113 | wf::scene::add_front(layer_node, shared_from_this()); |
| 114 | wf::wlr_surface_controller_t::create_controller(lock_surface->surface, |
| 115 | std::dynamic_pointer_cast<wf::scene::floating_inner_node_t>(shared_from_this())); |
| 116 | wf::get_core().seat->set_active_node(shared_from_this()); |
| 117 | wf::get_core().seat->refocus(); |
| 118 | } |
| 119 | |
| 120 | void destroy() |
| 121 | { |
no test coverage detected