Sets up basic hooks needed while switcher works and/or displays animations. * Also lower any fullscreen views that are active */
| 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() |
nothing calls this directly
no test coverage detected