From 5cf328fbecfda9ea2cb2d2558410165138f970a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 2 Jul 2013 12:45:01 +0200 Subject: [PATCH] ensure to not add NULL effect windows to stacking happens during threaded startup and crashes in blur effect when initially enabled REVIEW: 111360 --- effects.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/effects.cpp b/effects.cpp index da48338ecb..a81dfa1e66 100644 --- a/effects.cpp +++ b/effects.cpp @@ -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; }