Skip to content

Commit

Permalink
Prevent SegFault in the absence of XRANDR
Browse files Browse the repository at this point in the history
  • Loading branch information
tagatac committed Jul 21, 2014
1 parent bac3bf0 commit aa395dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gs-fade.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa395dc

Please sign in to comment.