Commit 525e96cc authored by Igor Poboiko's avatar Igor Poboiko

[effects/cubeslide] Slightly improve readability of the code

parent 9043c092
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment