mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:09:48 +01:00
keybinds: simulate movement on empty focus after workspace change
This commit is contained in:
parent
b884544ee6
commit
41e5f401c5
1 changed files with 4 additions and 1 deletions
|
@ -870,6 +870,9 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
} else
|
||||
pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE);
|
||||
|
||||
if (!g_pCompositor->m_pLastFocus)
|
||||
g_pInputManager->simulateMouseMovement();
|
||||
else
|
||||
g_pInputManager->sendMotionEventsToFocused();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue