diff --git a/metadata/animate.xml b/metadata/animate.xml index d85dc91f1..707e8e90b 100644 --- a/metadata/animate.xml +++ b/metadata/animate.xml @@ -146,5 +146,10 @@ <_long>Sets the duration of the squeezimize animation in milliseconds. 150ms linear + diff --git a/plugins/animate/zap.hpp b/plugins/animate/zap.hpp index 3f5c79a95..cbbc3d132 100644 --- a/plugins/animate/zap.hpp +++ b/plugins/animate/zap.hpp @@ -31,6 +31,9 @@ #include static const std::string zap_transformer_name = "zap-transformer"; + +wf::option_wrapper_t zap_duration{"animate/zap_duration"}; + namespace wf { namespace zap @@ -54,7 +57,7 @@ class zap_animation : public animation_base this->view = view; this->type = type; this->progression = - wf::zap::zap_animation_t(wf::create_option(dur)); + wf::zap::zap_animation_t(wf::create_option(zap_duration)); if (type & HIDING_ANIMATION) {