From d3acbf0127403e73236ebd4c72c28df77825cf6c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 19 Mar 2022 18:29:48 +0200 Subject: [PATCH] Revert "make gestured desktop switching use natural directions" This reverts commit 5d9e0be9593f42e58c13ed436ca4f9867aa49148. This change was merged prematurely. --- src/virtualdesktops.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/virtualdesktops.cpp b/src/virtualdesktops.cpp index d9d2be085f..593f4aac79 100644 --- a/src/virtualdesktops.cpp +++ b/src/virtualdesktops.cpp @@ -824,27 +824,27 @@ void VirtualDesktopManager::initShortcuts() connect(m_swipeGestureReleasedDown, &QAction::triggered, this, &VirtualDesktopManager::gestureReleasedDown); //These take the live feedback from a gesture - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Left, 3, m_swipeGestureReleasedRight, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Right, 3, m_swipeGestureReleasedRight, [this](qreal cb) { m_currentDesktopOffset.setX(cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); }); - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Right, 3, m_swipeGestureReleasedLeft, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Left, 3, m_swipeGestureReleasedLeft, [this](qreal cb) { m_currentDesktopOffset.setX(-cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); }); - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Left, 4, m_swipeGestureReleasedRight, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Right, 4, m_swipeGestureReleasedRight, [this](qreal cb) { m_currentDesktopOffset.setX(cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); }); - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Right, 4, m_swipeGestureReleasedLeft, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Left, 4, m_swipeGestureReleasedLeft, [this](qreal cb) { m_currentDesktopOffset.setX(-cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); }); - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Down, 3, m_swipeGestureReleasedUp, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Up, 3, m_swipeGestureReleasedUp, [this](qreal cb) { m_currentDesktopOffset.setY(-cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); }); - input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Up, 3, m_swipeGestureReleasedDown, [this](qreal cb) { + input()->registerRealtimeTouchpadSwipeShortcut(SwipeDirection::Down, 3, m_swipeGestureReleasedDown, [this](qreal cb) { m_currentDesktopOffset.setY(cb); Q_EMIT currentChanging(current(), m_currentDesktopOffset); });