aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-13 11:36:41 +0100
committervaxerski <[email protected]>2023-09-13 11:36:41 +0100
commit41e5f401c570eccc0546dcff8bfbe09af16e3ff4 (patch)
tree0e9e62a335f6fd9b2911cef5e7920df3bc1546fe
parentb884544ee63b4c3b3b150ff69cf24c90058c2777 (diff)
downloadHyprland-41e5f401c570eccc0546dcff8bfbe09af16e3ff4.tar.gz
Hyprland-41e5f401c570eccc0546dcff8bfbe09af16e3ff4.zip
keybinds: simulate movement on empty focus after workspace change
-rw-r--r--src/managers/KeybindManager.cpp5
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) {