From bf9d358d3b73416ac76812038534863a9e245d85 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 8 Aug 2022 20:21:11 +0200 Subject: fix refocus shenanigans with window data --- src/managers/input/InputManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/managers/input/InputManager.cpp') diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index ed7623d6..e23962a1 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -210,9 +210,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { wlr_seat_pointer_clear_focus(g_pCompositor->m_sSeat.seat); if (refocus) { // if we are forcing a refocus, and we don't find a surface, clear the kb focus too! - g_pCompositor->focusSurface(nullptr); - - g_pCompositor->m_pLastWindow = nullptr; + g_pCompositor->focusWindow(nullptr); } return; -- cgit v1.2.3