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

Method init_switcher

plugins/single_plugins/switcher.cpp:336–348  ·  view source on GitHub ↗

Sets up basic hooks needed while switcher works and/or displays animations. * Also lower any fullscreen views that are active */

Source from the content-addressed store, hash-verified

334 /* Sets up basic hooks needed while switcher works and/or displays animations.
335 * Also lower any fullscreen views that are active */
336 bool init_switcher()
337 {
338 if (!output->activate_plugin(&grab_interface))
339 {
340 return false;
341 }
342
343 output->render->add_effect(&pre_hook, wf::OUTPUT_EFFECT_PRE);
344
345 render_node = std::make_shared<switcher_render_node_t>(this);
346 wf::scene::add_front(wf::get_core().scene(), render_node);
347 return true;
348 }
349
350 /* The reverse of init_switcher */
351 void deinit_switcher()

Callers

nothing calls this directly

Calls 3

add_frontFunction · 0.85
activate_pluginMethod · 0.80
add_effectMethod · 0.45

Tested by

no test coverage detected