diff options
author | vaxerski <[email protected]> | 2023-09-13 11:36:41 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-09-13 11:36:41 +0100 |
commit | 41e5f401c570eccc0546dcff8bfbe09af16e3ff4 (patch) | |
tree | 0e9e62a335f6fd9b2911cef5e7920df3bc1546fe | |
parent | b884544ee63b4c3b3b150ff69cf24c90058c2777 (diff) | |
download | Hyprland-41e5f401c570eccc0546dcff8bfbe09af16e3ff4.tar.gz Hyprland-41e5f401c570eccc0546dcff8bfbe09af16e3ff4.zip |
keybinds: simulate movement on empty focus after workspace change
-rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index e8bb3e74..e8c7a069 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -870,7 +870,10 @@ void CKeybindManager::changeworkspace(std::string args) { } else pWorkspaceToChangeTo->rememberPrevWorkspace(PCURRENTWORKSPACE); - g_pInputManager->sendMotionEventsToFocused(); + if (!g_pCompositor->m_pLastFocus) + g_pInputManager->simulateMouseMovement(); + else + g_pInputManager->sendMotionEventsToFocused(); } void CKeybindManager::fullscreenActive(std::string args) { |