From 23c68fd9da7ae34cf8c6046581db083c271600b6 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 17 May 2022 09:26:22 +0200 Subject: [PATCH] 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. --- src/effects/desktopgrid/desktopgrideffect.cpp | 2 +- src/effects/overview/overvieweffect.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/desktopgrid/desktopgrideffect.cpp b/src/effects/desktopgrid/desktopgrideffect.cpp index cb8b2f1566..7cd86950f5 100644 --- a/src/effects/desktopgrid/desktopgrideffect.cpp +++ b/src/effects/desktopgrid/desktopgrideffect.cpp @@ -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; } diff --git a/src/effects/overview/overvieweffect.cpp b/src/effects/overview/overvieweffect.cpp index d2a309787d..4374285404 100644 --- a/src/effects/overview/overvieweffect.cpp +++ b/src/effects/overview/overvieweffect.cpp @@ -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);