summaryrefslogtreecommitdiff
path: root/src/core/effects.c
diff options
context:
space:
mode:
authorJoaquín Ignacio Aramendía <[email protected]>2014-06-24 12:04:45 -0300
committerJoaquín Ignacio Aramendía <[email protected]>2014-06-26 20:26:23 -0300
commit25fc06391ca02c65dd9830e03a729a68f66c3220 (patch)
treefe5b6ab9492a9cb1131d3f691ed0e2728131177c /src/core/effects.c
parent9a7b1d9a02542171aa31f8340bbb16fa096793c0 (diff)
downloadmarco-25fc06391ca02c65dd9830e03a729a68f66c3220.tar.bz2
marco-25fc06391ca02c65dd9830e03a729a68f66c3220.tar.xz
Bugfix: run finished function if animations are disabled
Diffstat (limited to 'src/core/effects.c')
-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);
}