Move 4 finger swipe up to overview effect
This commit is contained in:
parent
7a6792aa2f
commit
934f50717e
2 changed files with 1 additions and 11 deletions
|
@ -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();
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue