From 035f0259cddeae5c648e9d9927bc0dc260bce170 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 30 Dec 2024 09:00:51 -0700 Subject: [PATCH] animate: Respect minimize duration setting (#2549) --- plugins/animate/animate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/animate/animate.cpp b/plugins/animate/animate.cpp index c277d158b..f25197d9d 100644 --- a/plugins/animate/animate.cpp +++ b/plugins/animate/animate.cpp @@ -383,9 +383,10 @@ class wayfire_animation : public wf::plugin_interface_t, private wf::per_output_ wf::signal::connection_t 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 };