diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-17 16:02:17 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-17 16:02:17 +0000 |
| commit | 294e51a857d158ce0b03c5fd752bbd05e67f6bc9 (patch) | |
| tree | 963e5a4dd6432cdecdc4ad19491b65d469419443 /src/managers/input/InputManager.cpp | |
| parent | cdcc5aba06f20005842cf966b23af50456dc7142 (diff) | |
input: refocus on completed drags
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 d45b1dc9..dab83b1d 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -423,7 +423,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { return; // don't enter any new surfaces } else { if (allowKeyboardRefocus && ((FOLLOWMOUSE != 3 && (*PMOUSEREFOCUS || m_pLastMouseFocus != pFoundWindow)) || refocus)) { - if (m_pLastMouseFocus != pFoundWindow || g_pCompositor->m_pLastWindow != pFoundWindow || g_pCompositor->m_pLastFocus != foundSurface) { + if (m_pLastMouseFocus != pFoundWindow || g_pCompositor->m_pLastWindow != pFoundWindow || g_pCompositor->m_pLastFocus != foundSurface || refocus) { m_pLastMouseFocus = pFoundWindow; // TODO: this looks wrong. When over a popup, it constantly is switching. |
