diff --git a/src/effects/desktopgrid/desktopgrid.cpp b/src/effects/desktopgrid/desktopgrid.cpp index ae1e859f86..5f298fb359 100644 --- a/src/effects/desktopgrid/desktopgrid.cpp +++ b/src/effects/desktopgrid/desktopgrid.cpp @@ -102,17 +102,6 @@ DesktopGridEffect::DesktopGridEffect() timeline.setCurrentTime(timeline.duration() * cb); effects->addRepaintFull(); }); - effects->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Up, 4, a, [this](qreal cb) { - if (activated) return; - - if (timeline.currentValue() == 0) { - activated = true; - setup(); - activated = false; - } - timeline.setCurrentTime(timeline.duration() * cb); - effects->addRepaintFull(); - }); connect(&timeline, &QTimeLine::frameChanged, this, []() { effects->addRepaintFull(); }); diff --git a/src/effects/overview/overvieweffect.cpp b/src/effects/overview/overvieweffect.cpp index c22e2885a8..d0cbe09a5a 100644 --- a/src/effects/overview/overvieweffect.cpp +++ b/src/effects/overview/overvieweffect.cpp @@ -39,6 +39,7 @@ OverviewEffect::OverviewEffect() KGlobalAccel::self()->setShortcut(m_toggleAction, {defaultToggleShortcut}); m_toggleShortcut = KGlobalAccel::self()->shortcut(m_toggleAction); effects->registerGlobalShortcut({defaultToggleShortcut}, m_toggleAction); + effects->registerTouchpadSwipeShortcut(SwipeDirection::Up, 4, m_toggleAction); connect(effects, &EffectsHandler::screenAboutToLock, this, &OverviewEffect::realDeactivate);