summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/effects.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/effects.c b/src/core/effects.c
index 658f6fa5..5d0d24a6 100644
--- a/src/core/effects.c
+++ b/src/core/effects.c
@@ -751,8 +751,15 @@ run_default_effect_handler (MetaEffect *effect)
static void
run_handler (MetaEffect *effect)
{
+ /* If effects are disabled just run the finished function */
if (meta_prefs_get_mate_animations ())
+ {
run_default_effect_handler (effect);
+ }
+ else
+ {
+ effect->priv->finished(effect->priv->finished_data);
+ }
effect_free (effect);
}