| 410 | } |
| 411 | |
| 412 | bool 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 | |
| 438 | static nonstd::observer_ptr<wf::grid::grid_animation_t> ensure_animation( |
| 439 | wayfire_toplevel_view view, wf::option_sptr_t<wf::animation_description_t> duration) |
no test coverage detected