diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-19 17:29:16 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-19 17:29:16 +0200 |
| commit | 81b27be6bb9fa86dae9fdae43e093743d7f24cf7 (patch) | |
| tree | a8565451445cfda508152045d21286acfea72027 /src/managers | |
| parent | f9e30e985c03ee6cb0641cdd032f003e02976b96 (diff) | |
reset lastwindow on full LS focus
Diffstat (limited to 'src/managers')
| -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 9a0d5226..a0016dba 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -272,8 +272,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { g_pCompositor->focusWindow(pFoundWindow, foundSurface); } } else { - if (pFoundLayerSurface && pFoundLayerSurface->layerSurface->current.keyboard_interactive && *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) + if (pFoundLayerSurface && pFoundLayerSurface->layerSurface->current.keyboard_interactive && *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) { g_pCompositor->focusSurface(foundSurface); + g_pCompositor->m_pLastWindow = nullptr; // reset last window as we have a full focus on a LS + } } wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, foundSurface, surfaceLocal.x, surfaceLocal.y); |
