diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-12 10:38:37 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-12 10:38:37 +0000 |
| commit | 7d914cd427b36d5ec8acb06e415cdf2b846f1648 (patch) | |
| tree | 709308f06d830bd4cdcce997278ebcb2ab3be933 /src/managers/input/InputManager.cpp | |
| parent | 287f31329e7a16b42c3f20b9b7ecf3ec6adbc51d (diff) | |
force monitor focus on refocus
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 5a08c0cd..342eaaa6 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -141,7 +141,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { g_pLayoutManager->getCurrentLayout()->onMouseMove(getMouseCoordsInternal()); - if (PMONITOR && PMONITOR != g_pCompositor->m_pLastMonitor && *PMOUSEFOCUSMON) { + if (PMONITOR && PMONITOR != g_pCompositor->m_pLastMonitor && (*PMOUSEFOCUSMON || refocus)) { g_pCompositor->setActiveMonitor(PMONITOR); // set active workspace and deactivate all other in wlr |
