From a87aa93e3bbe8e32d4899215ea00126c9c0b1cdd Mon Sep 17 00:00:00 2001 From: Aleix Pol Gonzalez Date: Wed, 6 Mar 2024 14:23:20 +0100 Subject: [PATCH] mobiletaskswitcher: Port to KWin API changes --- kwin/mobiletaskswitcher/mobiletaskswitchereffect.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kwin/mobiletaskswitcher/mobiletaskswitchereffect.cpp b/kwin/mobiletaskswitcher/mobiletaskswitchereffect.cpp index 94edd46b..965f195b 100644 --- a/kwin/mobiletaskswitcher/mobiletaskswitchereffect.cpp +++ b/kwin/mobiletaskswitcher/mobiletaskswitchereffect.cpp @@ -11,6 +11,8 @@ #include #include +using namespace std::chrono_literals; + namespace KWin { @@ -60,7 +62,7 @@ MobileTaskSwitcherEffect::~MobileTaskSwitcherEffect() void MobileTaskSwitcherEffect::reconfigure(ReconfigureFlags) { - setAnimationDuration(animationTime(300)); + setAnimationDuration(animationTime(300ms)); for (const ElectricBorder &border : std::as_const(m_borderActivate)) { effects->unreserveElectricBorder(border, this); @@ -125,7 +127,7 @@ void MobileTaskSwitcherEffect::deactivate(bool deactivateInstantly) QMetaObject::invokeMethod(view->rootItem(), "hideAnimation"); } } - m_shutdownTimer->start(animationTime(deactivateInstantly ? 0 : 200)); + m_shutdownTimer->start(animationTime(deactivateInstantly ? 0ms : 200ms)); } void MobileTaskSwitcherEffect::realDeactivate()