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

Method stop_switch

plugins/vswitch/vswitch.cpp:242–253  ·  view source on GitHub ↗

* Called automatically when the workspace switch animation is done. * By default, this stops the animation. * * @param normal_exit Whether the operation has ended because of animation * running out, in which case the workspace and the overlay view are * adjusted, and otherwise not. */

Source from the content-addressed store, hash-verified

240 * adjusted, and otherwise not.
241 */
242 virtual void stop_switch(bool normal_exit)
243 {
244 if (normal_exit)
245 {
246 auto old_ws = output->wset()->get_current_workspace();
247 adjust_overlay_view_switch_done(old_ws);
248 }
249
250 wall->stop_output_renderer(true);
251 output->render->rem_effect(&post_render);
252 running = false;
253 }
254
255 virtual bool is_running() const
256 {

Callers 2

vswitchClass · 0.45
finiMethod · 0.45

Calls 4

wsetMethod · 0.80
stop_output_rendererMethod · 0.80
get_current_workspaceMethod · 0.45
rem_effectMethod · 0.45

Tested by

no test coverage detected