diff options
author | Vaxry <[email protected]> | 2024-10-27 18:23:01 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-27 18:23:01 +0000 |
commit | 24d218964bb099b8aa7c4b913a63389d0b3be203 (patch) | |
tree | fccb9c0e2371fe3851ace3fd6b15a5b9deda84d2 /src/managers/input/Swipe.cpp | |
parent | f9b52203f58bcb716144d89ee9f85fe12ebfe94d (diff) | |
download | Hyprland-24d218964bb099b8aa7c4b913a63389d0b3be203.tar.gz Hyprland-24d218964bb099b8aa7c4b913a63389d0b3be203.zip |
move to monitor pointersmove-to-monitor-p
Diffstat (limited to 'src/managers/input/Swipe.cpp')
-rw-r--r-- | src/managers/input/Swipe.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index 8f95c6c6..ba0783fa 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -15,9 +15,8 @@ void CInputManager::onSwipeBegin(IPointer::SSwipeBeginEvent e) { int onMonitor = 0; for (auto const& w : g_pCompositor->m_vWorkspaces) { - if (w->m_iMonitorID == g_pCompositor->m_pLastMonitor->ID && !g_pCompositor->isWorkspaceSpecial(w->m_iID)) { + if (w->m_pMonitor == g_pCompositor->m_pLastMonitor && !g_pCompositor->isWorkspaceSpecial(w->m_iID)) onMonitor++; - } } if (onMonitor < 2 && !*PSWIPENEW) |