diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-14 15:03:53 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-14 15:03:53 +0100 |
| commit | 287e6c4ede30c8e5e85863cd85f157e17e24879c (patch) | |
| tree | 68d6ece9e46bb81bfbc15610b2043494c66f4624 /src/managers/input/Swipe.cpp | |
| parent | 011600ac6e7f6d52f69d0890bffba519a9d81e3f (diff) | |
internal: workspace manip handling rework
Diffstat (limited to 'src/managers/input/Swipe.cpp')
| -rw-r--r-- | src/managers/input/Swipe.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/input/Swipe.cpp b/src/managers/input/Swipe.cpp index a3c429f9..2cf18cbe 100644 --- a/src/managers/input/Swipe.cpp +++ b/src/managers/input/Swipe.cpp @@ -115,9 +115,9 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) { const auto RENDEROFFSET = PWORKSPACEL ? PWORKSPACEL->m_vRenderOffset.vec() : Vector2D(); if (PWORKSPACEL) - g_pKeybindManager->m_mDispatchers["workspace"]("[internal]" + std::to_string(workspaceIDLeft)); + m_sActiveSwipe.pMonitor->changeWorkspace(workspaceIDLeft); else { - g_pKeybindManager->m_mDispatchers["workspace"](std::to_string(workspaceIDLeft)); // so that the ID is created properly + m_sActiveSwipe.pMonitor->changeWorkspace(g_pCompositor->createNewWorkspace(workspaceIDLeft, m_sActiveSwipe.pMonitor->ID)); PWORKSPACEL = g_pCompositor->getWorkspaceByID(workspaceIDLeft); } @@ -141,9 +141,9 @@ void CInputManager::onSwipeEnd(wlr_pointer_swipe_end_event* e) { const auto RENDEROFFSET = PWORKSPACER ? PWORKSPACER->m_vRenderOffset.vec() : Vector2D(); if (PWORKSPACER) - g_pKeybindManager->m_mDispatchers["workspace"]("[internal]" + std::to_string(workspaceIDRight)); + m_sActiveSwipe.pMonitor->changeWorkspace(workspaceIDRight); else { - g_pKeybindManager->m_mDispatchers["workspace"](std::to_string(workspaceIDRight)); // so that the ID is created properly + m_sActiveSwipe.pMonitor->changeWorkspace(g_pCompositor->createNewWorkspace(workspaceIDRight, m_sActiveSwipe.pMonitor->ID)); PWORKSPACER = g_pCompositor->getWorkspaceByID(workspaceIDRight); } |
