From cf37922d4285689990a648bc02aecb90a07a36ba Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 9 Jun 2023 12:19:48 +0200 Subject: [PATCH] input: update surface input on changeworkspace --- src/managers/KeybindManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9050374c..34a7defa 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -816,6 +816,7 @@ void CKeybindManager::changeworkspace(std::string args) { if (pWorkspaceToChangeTo->m_bIsSpecialWorkspace) { PMONITOR->setSpecialWorkspace(pWorkspaceToChangeTo); + g_pInputManager->simulateMouseMovement(); return; } @@ -839,6 +840,8 @@ void CKeybindManager::changeworkspace(std::string args) { } pWorkspaceToChangeTo->m_sPrevWorkspace = {PCURRENTWORKSPACE->m_iID, PCURRENTWORKSPACE->m_szName}; + + g_pInputManager->simulateMouseMovement(); } void CKeybindManager::fullscreenActive(std::string args) {