From 1084f162aa3d15fe31e9e60a7c8d7994b8499b1e Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Thu, 3 Jan 2019 17:57:32 +0200 Subject: [PATCH] [effects/slidingpopups] Port away from deprecated EffectWindow::desktop Summary: If a window is not on the current virtual desktop, then it won't be painted/slided. Thus, we can replace EffectWindow::desktop by EffectsHandler::currentDesktop. Test Plan: The effect still works correctly on both X11 and Wayland. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17944 --- effects/slidingpopups/slidingpopups.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/slidingpopups/slidingpopups.cpp b/effects/slidingpopups/slidingpopups.cpp index 5986476e0c..6231d16e34 100644 --- a/effects/slidingpopups/slidingpopups.cpp +++ b/effects/slidingpopups/slidingpopups.cpp @@ -123,7 +123,7 @@ void SlidingPopupsEffect::paintWindow(EffectWindow *w, int mask, QRegion region, const AnimationData &animData = m_animationsData[w]; const int slideLength = (animData.slideLength > 0) ? animData.slideLength : m_slideLength; - const QRect screenRect = effects->clientArea(FullScreenArea, w->screen(), w->desktop()); + const QRect screenRect = effects->clientArea(FullScreenArea, w->screen(), effects->currentDesktop()); int splitPoint = 0; const QRect geo = w->expandedGeometry(); const qreal t = (*animationIt).timeLine.value();