mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
mobiletaskswitcher: Port to KWin API changes
This commit is contained in:
parent
2bd8d6545e
commit
a87aa93e3b
1 changed files with 4 additions and 2 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#include <QMetaObject>
|
||||
#include <QQuickItem>
|
||||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue