MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / display

Method display

plugins/protocols/session-lock.cpp:104–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

wayfire_session_lockMethod · 0.45
lock_outputMethod · 0.45

Calls 4

add_frontFunction · 0.85
node_for_layerMethod · 0.80
set_active_nodeMethod · 0.80
refocusMethod · 0.45

Tested by

no test coverage detected