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

Method needs_crossfade

plugins/tile/tree.cpp:412–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412bool view_node_t::needs_crossfade()
413{
414 if (animation_duration.value().length_ms == 0)
415 {
416 return false;
417 }
418
419 if (view->has_data<wf::grid::grid_animation_t>())
420 {
421 return true;
422 }
423
424 if (!view->get_output())
425 {
426 return false;
427 }
428
429 if (view->get_output()->is_plugin_active("simple-tile"))
430 {
431 // Disable animations while controllers are active
432 return false;
433 }
434
435 return true;
436}
437
438static nonstd::observer_ptr<wf::grid::grid_animation_t> ensure_animation(
439 wayfire_toplevel_view view, wf::option_sptr_t<wf::animation_description_t> duration)

Callers 1

set_geometryMethod · 0.95

Calls 2

is_plugin_activeMethod · 0.80
get_outputMethod · 0.45

Tested by

no test coverage detected