summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-19 17:29:16 +0200
committervaxerski <vaxry@vaxry.net>2022-08-19 17:29:16 +0200
commit81b27be6bb9fa86dae9fdae43e093743d7f24cf7 (patch)
treea8565451445cfda508152045d21286acfea72027 /src/managers/input/InputManager.cpp
parentf9e30e985c03ee6cb0641cdd032f003e02976b96 (diff)
reset lastwindow on full LS focus
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp4
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);