summaryrefslogtreecommitdiff
path: root/src/gs-fade.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-07-21 13:16:09 +0200
committerStefano Karapetsas <[email protected]>2014-07-21 13:16:09 +0200
commitedb89a74aa0440cd0f59bddf9205d50d91634e2d (patch)
tree75db2d2e08f643154a448c045f93dec306c1f695 /src/gs-fade.c
parentbac3bf0c3dd1ca68a20cc1e81e66f9cb3941dd4d (diff)
parentaa395dc912c8fe57ecb3162055288a039d287c89 (diff)
downloadmate-screensaver-edb89a74aa0440cd0f59bddf9205d50d91634e2d.tar.bz2
mate-screensaver-edb89a74aa0440cd0f59bddf9205d50d91634e2d.tar.xz
Merge pull request #52 from tagatac/master
Prevent SegFault in the absence of XRANDR
Diffstat (limited to 'src/gs-fade.c')
-rw-r--r--src/gs-fade.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gs-fade.c b/src/gs-fade.c
index eaf095e..a0ecd9a 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -916,7 +916,8 @@ gs_fade_reset (GSFade *fade)
gs_fade_set_alpha (fade, fade->priv->current_alpha);
for (i = 0; i < fade->priv->num_screens; i++)
- fade->priv->screen_priv[i].fade_finish (fade, i);
+ if (fade->priv->screen_priv[i].fade_type != FADE_TYPE_NONE)
+ fade->priv->screen_priv[i].fade_finish (fade, i);
}
static void