Skip to content

Commit

Permalink
Merge pull request #52 from tagatac/master
Browse files Browse the repository at this point in the history
Prevent SegFault in the absence of XRANDR
  • Loading branch information
stefano-k committed Jul 21, 2014
2 parents bac3bf0 + aa395dc commit edb89a7
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 edb89a7

Please sign in to comment.