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:
parent
3b285ba572
commit
5cf328fbec
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue