* Switch the output the view is being animated on, and update the lastly * animated output in the global list. */
| 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 | { |
no test coverage detected