effects/desktopgrid,overivew: set touchpad gestures to match 5.24

As we don't provide any ability for the user to configure the gestures yet,
the gesture for the desktop grid should stay as it was in the last release.
This commit swaps the gestures for desktopgrid and overview to achieve that.
This commit is contained in:
Xaver Hugl 2022-05-17 09:26:22 +02:00 committed by Vlad Zahorodnii
parent 1ee00bc6f9
commit 23c68fd9da
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ DesktopGridEffect::DesktopGridEffect()
Q_EMIT partialActivationFactorChanged();
});
effects->registerRealtimeTouchpadPinchShortcut(PinchDirection::Contracting, 4, m_realtimeToggleAction, [this](qreal progress) {
effects->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Up, 4, m_realtimeToggleAction, [this](qreal progress) {
if (m_status == Status::Active) {
return;
}

View file

@ -61,7 +61,7 @@ OverviewEffect::OverviewEffect()
}
};
effects->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Up, 4, m_realtimeToggleAction, progressCallback);
effects->registerRealtimeTouchpadPinchShortcut(PinchDirection::Contracting, 4, m_realtimeToggleAction, progressCallback);
effects->registerTouchscreenSwipeShortcut(SwipeDirection::Up, 3, m_realtimeToggleAction, progressCallback);
connect(effects, &EffectsHandler::screenAboutToLock, this, &OverviewEffect::realDeactivate);