diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-09-03 15:35:53 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-09-03 15:35:53 +0200 |
| commit | f4add0ac6d633379ade7470a5e6b4afd45f4a073 (patch) | |
| tree | c3f283024c927191d4e609f8651081cad92b7991 /src/managers/KeybindManager.cpp | |
| parent | 3c3f80c2fe093303b84cd52be22b523ea06a3c6e (diff) | |
refocus on reserved area
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9371d7fd..edb6cfde 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -653,7 +653,11 @@ void CKeybindManager::changeworkspace(std::string args) { // warp and focus if (anotherMonitor) g_pCompositor->warpCursorTo(PWINDOW->m_vRealPosition.vec() + PWINDOW->m_vRealSize.vec() / 2.f); + g_pCompositor->focusWindow(PWINDOW, g_pXWaylandManager->getWindowSurface(PWINDOW)); + + if (g_pCompositor->cursorOnReservedArea()) // fix focus on bars etc + g_pInputManager->refocus(); } else g_pInputManager->refocus(); |
