keybinds: simulate movement on empty focus after workspace change

This commit is contained in:
Vaxry 2023-09-13 11:36:41 +01:00
parent b884544ee6
commit 41e5f401c5

View file

@ -870,6 +870,9 @@ void CKeybindManager::changeworkspace(std::string args) {
} else } else
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE); pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
if (!g_pCompositor->m_pLastFocus)
g_pInputManager->simulateMouseMovement();
else
g_pInputManager->sendMotionEventsToFocused(); g_pInputManager->sendMotionEventsToFocused();
} }