ensure to not add NULL effect windows to stacking

happens during threaded startup and crashes in blur effect
when initially enabled

REVIEW: 111360
This commit is contained in:
Thomas Lübking 2013-07-02 12:45:01 +02:00
parent 3b285ba572
commit 5cf328fbec

View file

@ -1045,8 +1045,10 @@ EffectWindowList EffectsHandlerImpl::stackingOrder() const
{
ToplevelList list = Workspace::self()->xStackingOrder();
EffectWindowList ret;
foreach (Toplevel *w, list)
ret.append(effectWindow(w));
foreach (Toplevel *t, list) {
if (EffectWindow *w = effectWindow(t))
ret.append(w);
}
return ret;
}