Ensure variables are initialized in fade effect

This commit is contained in:
Martin Gräßlin 2012-01-13 09:13:58 +01:00
parent e1f888d1f6
commit 2d3198e67c

View file

@ -28,6 +28,11 @@ namespace KWin
KWIN_EFFECT(fade, FadeEffect)
FadeEffect::FadeEffect()
: fadeInStep(0.0)
, fadeOutStep(0.0)
, fadeInTime(0)
, fadeOutTime(0)
, fadeWindows(false)
{
reconfigure(ReconfigureAll);
connect(effects, SIGNAL(windowAdded(EffectWindow*)), this, SLOT(slotWindowAdded(EffectWindow*)));