diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-09-18 12:35:05 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-09-18 12:35:05 +0100 |
| commit | 29626989e7ac89ee596af01dfdefad6118324d5d (patch) | |
| tree | ce1ee8fc0a278017dd94df04d960bc29c9f6027d /src/managers/input/InputManager.cpp | |
| parent | cf32d2808236bd3f12927953b652cc144a0c055f (diff) | |
fix focus follows mouse 0 event sending on wrong window
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 2e1d2869..7b0e0fbb 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -286,7 +286,9 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, foundSurface, surfaceLocal.x, surfaceLocal.y); } - wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, time, surfaceLocal.x, surfaceLocal.y); + if (*PFOLLOWMOUSE != 0 || pFoundWindow == g_pCompositor->m_pLastWindow) + wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, time, surfaceLocal.x, surfaceLocal.y); + m_bLastFocusOnLS = false; return; // don't enter any new surfaces } else { |
