* Initialize switching animation. * At this point, the calling plugin needs to have the custom renderer * ability set. */
| 129 | * ability set. |
| 130 | */ |
| 131 | virtual void start_switch() |
| 132 | { |
| 133 | /* Setup wall */ |
| 134 | wall->set_gap_size(gap); |
| 135 | wall->set_viewport(wall->get_workspace_rectangle( |
| 136 | output->wset()->get_current_workspace())); |
| 137 | wall->set_background_color(background_color); |
| 138 | wall->start_output_renderer(); |
| 139 | |
| 140 | if (overlay_view_node) |
| 141 | { |
| 142 | wf::scene::readd_front(wf::get_core().scene(), overlay_view_node); |
| 143 | } |
| 144 | |
| 145 | output->render->add_effect(&post_render, OUTPUT_EFFECT_POST); |
| 146 | |
| 147 | running = true; |
| 148 | |
| 149 | /* Setup animation */ |
| 150 | animation.dx.set(0, 0); |
| 151 | animation.dy.set(0, 0); |
| 152 | animation.start(); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Start workspace switch animation towards the given workspace, |
nothing calls this directly
no test coverage detected