diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-25 10:25:36 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-05-25 10:25:36 +0200 |
| commit | 0ae6563fefcad255195a4cb296907c0e1732eb94 (patch) | |
| tree | 43ab0334b6e6d4204146f64cbb45f8d70fa12868 /src/managers/InputManager.cpp | |
| parent | c8425926c90da1aca425ad4a5468d9345100ac28 (diff) | |
workspace set active
Diffstat (limited to 'src/managers/InputManager.cpp')
| -rw-r--r-- | src/managers/InputManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index e3e4bd36..446ce369 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -87,11 +87,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { g_pCompositor->m_pLastMonitor = PMONITOR; // set active workspace and deactivate all other in wlr - g_pCompositor->deactivateAllWLRWorkspaces(g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace)->m_pWlrHandle); - wlr_ext_workspace_handle_v1_set_active(g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace)->m_pWlrHandle, true); + const auto ACTIVEWORKSPACE = g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace); + g_pCompositor->deactivateAllWLRWorkspaces(ACTIVEWORKSPACE->m_pWlrHandle); + ACTIVEWORKSPACE->setActive(true); // event - g_pEventManager->postEvent(SHyprIPCEvent("activemon", PMONITOR->szName + "," + g_pCompositor->getWorkspaceByID(PMONITOR->activeWorkspace)->m_szName)); + g_pEventManager->postEvent(SHyprIPCEvent("activemon", PMONITOR->szName + "," + ACTIVEWORKSPACE->m_szName)); } Vector2D surfaceCoords; |
