From 525e96cc18e5071a9f25680259558dcb2dcca071 Mon Sep 17 00:00:00 2001 From: Igor Poboiko Date: Fri, 14 Sep 2018 12:52:32 +0300 Subject: [PATCH] [effects/cubeslide] Slightly improve readability of the code --- effects/cube/cubeslide.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/effects/cube/cubeslide.cpp b/effects/cube/cubeslide.cpp index 7c780ca9f4..b97591f041 100644 --- a/effects/cube/cubeslide.cpp +++ b/effects/cube/cubeslide.cpp @@ -518,12 +518,14 @@ void CubeSlideEffect::startAnimation() { } void CubeSlideEffect::slotWindowAdded(EffectWindow* w) { - if (!isActive() || shouldAnimate(w)) { + if (!isActive()) { return; } - staticWindows.insert(w); - w->setData(WindowForceBlurRole, QVariant(true)); - w->setData(WindowForceBackgroundContrastRole, QVariant(true)); + if (!shouldAnimate(w)) { + staticWindows.insert(w); + w->setData(WindowForceBlurRole, QVariant(true)); + w->setData(WindowForceBackgroundContrastRole, QVariant(true)); + } } void CubeSlideEffect::slotWindowDeleted(EffectWindow* w) {