diff options
author | David Tagatac <[email protected]> | 2014-07-21 06:35:13 -0400 |
---|---|---|
committer | David Tagatac <[email protected]> | 2014-07-21 06:35:13 -0400 |
commit | aa395dc912c8fe57ecb3162055288a039d287c89 (patch) | |
tree | 75db2d2e08f643154a448c045f93dec306c1f695 | |
parent | bac3bf0c3dd1ca68a20cc1e81e66f9cb3941dd4d (diff) | |
download | mate-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
-rw-r--r-- | src/gs-fade.c | 3 |
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 |