diff --git a/metadata/animate.xml b/metadata/animate.xml
index 31da5891e..9b30d63c9 100644
--- a/metadata/animate.xml
+++ b/metadata/animate.xml
@@ -63,6 +63,12 @@
<_long>Sets the duration of fading (in milliseconds) when Wayfire starts.
600ms linear
+
+
+ <_short>Close animation duration
+ <_long>Sets the duration of animation when closing a window.
+ 400ms
+
<_short>Fade animation enabled for specified window types
diff --git a/plugins/animate/animate.cpp b/plugins/animate/animate.cpp
index 8b7fb7805..e12877dba 100644
--- a/plugins/animate/animate.cpp
+++ b/plugins/animate/animate.cpp
@@ -268,6 +268,7 @@ class wayfire_animation : public wf::plugin_interface_t, private wf::per_output_
wf::option_wrapper_t close_animation{"animate/close_animation"};
wf::option_wrapper_t default_duration{"animate/duration"};
+ wf::option_wrapper_t close_duration{"animate/close_duration"};
wf::option_wrapper_t fade_duration{"animate/fade_duration"};
wf::option_wrapper_t zoom_duration{"animate/zoom_duration"};
wf::option_wrapper_t fire_duration{"animate/fire_duration"};
@@ -332,7 +333,7 @@ class wayfire_animation : public wf::plugin_interface_t, private wf::per_output_
if (animation_enabled_for.matches(view))
{
- return {anim_type, default_duration};
+ return {anim_type, &anim_type == &close_animation ? close_duration : default_duration};
}
return {"none", wf::animation_description_t{0, {}, ""}};