Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animate: Respect minimize duration setting #2549

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading