summaryrefslogtreecommitdiff
path: root/src/gs-fade.c
diff options
context:
space:
mode:
authorDavid Tagatac <[email protected]>2014-07-21 06:35:13 -0400
committerDavid Tagatac <[email protected]>2014-07-21 06:35:13 -0400
commitaa395dc912c8fe57ecb3162055288a039d287c89 (patch)
tree75db2d2e08f643154a448c045f93dec306c1f695 /src/gs-fade.c
parentbac3bf0c3dd1ca68a20cc1e81e66f9cb3941dd4d (diff)
downloadmate-screensaver-aa395dc912c8fe57ecb3162055288a039d287c89.tar.bz2
mate-screensaver-aa395dc912c8fe57ecb3162055288a039d287c89.tar.xz
Prevent SegFault in the absence of XRANDR
(Fix #46) Patch by Steven Chamberlain https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=bug749629.patch;att=1;bug=749629
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