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

Method destroy

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

Source from the content-addressed store, hash-verified

118 }
119
120 void destroy()
121 {
122 wf::scene::damage_node(shared_from_this(), get_bounding_box());
123 wf::wlr_surface_controller_t::try_free_controller(this->lock_surface->surface);
124 wf::scene::remove_child(shared_from_this());
125 this->interaction = std::make_unique<wf::keyboard_interaction_t>();
126 const char *name = (this->output && this->output->handle) ? this->output->handle->name : "(deleted)";
127 LOGC(LSHELL, "lock_surface on ", name, " destroyed");
128 }
129
130 wf::keyboard_interaction_t& keyboard_interaction() override
131 {

Callers 1

wayfire_session_lockMethod · 0.45

Calls 2

damage_nodeFunction · 0.85
remove_childFunction · 0.85

Tested by

no test coverage detected