| 194 | }; |
| 195 | |
| 196 | void start_swipe(swipe_direction_t direction) |
| 197 | { |
| 198 | assert(direction != UNKNOWN); |
| 199 | state.direction = direction; |
| 200 | |
| 201 | if (!output->activate_plugin(&grab_interface)) |
| 202 | { |
| 203 | return; |
| 204 | } |
| 205 | |
| 206 | input_grab->grab_input(wf::scene::layer::OVERLAY); |
| 207 | wf::get_core().seat->focus_output(output); |
| 208 | |
| 209 | auto ws = output->wset()->get_current_workspace(); |
| 210 | wall->set_background_color(background_color); |
| 211 | wall->set_gap_size(gap); |
| 212 | wall->set_viewport(wall->get_workspace_rectangle(ws)); |
| 213 | wall->start_output_renderer(); |
| 214 | output->render->add_effect(&post_frame, wf::OUTPUT_EFFECT_POST); |
| 215 | } |
| 216 | |
| 217 | // XXX: how to determine this?? |
| 218 | static constexpr double initial_direction_threshold = 0.05; |
nothing calls this directly
no test coverage detected