From ea61a6f63ab3970521de69ae1917de41ac68e830 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 11 Jan 2023 14:35:20 +0300 Subject: [PATCH] effects/magiclamp: Fix window suddenly disappearing when reversing minimize animation In this branch a new animation is being started, so a ref-guard needs to be the same as in the similar branch for starting minimize animation in the slot above. --- src/effects/magiclamp/magiclamp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects/magiclamp/magiclamp.cpp b/src/effects/magiclamp/magiclamp.cpp index 9648c1e7bb..93ad18c411 100644 --- a/src/effects/magiclamp/magiclamp.cpp +++ b/src/effects/magiclamp/magiclamp.cpp @@ -357,6 +357,7 @@ void MagicLampEffect::slotWindowUnminimized(EffectWindow *w) if (animation.timeLine.running()) { animation.timeLine.toggleDirection(); } else { + animation.visibleRef = EffectWindowVisibleRef(w, EffectWindow::PAINT_DISABLED_BY_MINIMIZE); animation.timeLine.setDirection(TimeLine::Backward); animation.timeLine.setDuration(m_duration); animation.timeLine.setEasingCurve(QEasingCurve::Linear);