diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-10 15:15:40 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-10 15:15:40 +0000 |
| commit | c3f1dc3f526a7f94c37d72f8314bc4bce969f0d8 (patch) | |
| tree | 7a5ccc519780b0866ae94cf334aa940f91c670f8 /src/managers/input/InputManager.cpp | |
| parent | 62f4503f07066762af9546bb4a2acdd58b72d4bf (diff) | |
fix minor issues with move focus and follow mouse 0
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 51d5d4e2..41233f92 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -297,16 +297,12 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { m_bLastFocusOnLS = false; } else { - if (pFoundLayerSurface) { - m_bLastFocusOnLS = true; - if (pFoundLayerSurface->layer <= ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) { - g_pCompositor->focusWindow(nullptr); - } - } - if (pFoundLayerSurface && pFoundLayerSurface->layerSurface->current.keyboard_interactive && *PFOLLOWMOUSE != 3 && allowKeyboardRefocus) { g_pCompositor->focusSurface(foundSurface); } + + if (pFoundLayerSurface) + m_bLastFocusOnLS = true; } wlr_seat_pointer_notify_enter(g_pCompositor->m_sSeat.seat, foundSurface, surfaceLocal.x, surfaceLocal.y); |
