summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tagatac <[email protected]>2014-07-21 06:35:13 -0400
committerinfirit <[email protected]>2014-09-25 14:46:46 +0200
commitad79018ef7bfa72b03c529ba713ce6b130b2469b (patch)
tree9e3a69c5aabcc04491c30d24e749eb9629032683
parent4d38987ae7055cf885c231ba6117a3cdaf54c7a7 (diff)
downloadmate-screensaver-ad79018ef7bfa72b03c529ba713ce6b130b2469b.tar.bz2
mate-screensaver-ad79018ef7bfa72b03c529ba713ce6b130b2469b.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.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