From aa395dc912c8fe57ecb3162055288a039d287c89 Mon Sep 17 00:00:00 2001 From: David Tagatac Date: Mon, 21 Jul 2014 06:35:13 -0400 Subject: 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 --- src/gs-fade.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.1