From 89ec0b63aa1f98a8ae69e348679a05726a0d3a60 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Wed, 15 Jun 2011 19:34:12 +0200 Subject: [PATCH] kwin: Fix crash for Toplevel windows with zero EffectWindow While closing a window it might happen that we emit the windowOpacityChanged signal although we dont have an EffectWindow. Related to commit 1ce3f9fc53aa93a7536d43d0c936266f0ae21b65 --- effects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects.cpp b/effects.cpp index e5af332b7b..92c34b2cdb 100644 --- a/effects.cpp +++ b/effects.cpp @@ -351,7 +351,7 @@ void EffectsHandlerImpl::slotClientStepUserMovedResized(Client* c, const QRect& void EffectsHandlerImpl::slotOpacityChanged(Toplevel *t, qreal oldOpacity) { - if (t->opacity() == oldOpacity) { + if (t->opacity() == oldOpacity || !t->effectWindow()) { return; } emit windowOpacityChanged(t->effectWindow(), oldOpacity, (qreal)t->opacity());