Skip to content

Commit

Permalink
animate: Respect minimize duration setting (#2549)
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau authored Dec 30, 2024
1 parent d6f4195 commit 035f025
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/animate/animate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,10 @@ class wayfire_animation : public wf::plugin_interface_t, private wf::per_output_
wf::signal::connection_t<wf::view_minimize_request_signal> on_minimize_request =
[=] (wf::view_minimize_request_signal *ev)
{
auto animation = get_animation_for_view(minimize_animation, ev->view);
set_animation(ev->view, minimize_animation,
ev->state ? wf::animate::ANIMATION_TYPE_MINIMIZE : wf::animate::ANIMATION_TYPE_RESTORE,
default_duration);
animation.duration);
// ev->carried_out should remain false, so that core also does the automatic minimize/restore and
// refocus
};
Expand Down

0 comments on commit 035f025

Please sign in to comment.