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

Method set_output

plugins/animate/animate.cpp:61–75  ·  view source on GitHub ↗

* Switch the output the view is being animated on, and update the lastly * animated output in the global list. */

Source from the content-addressed store, hash-verified

59 * animated output in the global list.
60 */
61 void set_output(wf::output_t *new_output)
62 {
63 if (current_output)
64 {
65 current_output->render->rem_effect(&update_animation_hook);
66 }
67
68 if (new_output)
69 {
70 new_output->render->add_effect(&update_animation_hook,
71 wf::OUTPUT_EFFECT_PRE);
72 }
73
74 current_output = new_output;
75 }
76
77 wf::signal::connection_t<wf::view_set_output_signal> on_set_output = [=] (auto)
78 {

Callers 1

send_window_toMethod · 0.45

Calls 2

rem_effectMethod · 0.45
add_effectMethod · 0.45

Tested by

no test coverage detected