From 62efc045d78a482a462bd0c77b2e2dd3038c8f08 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 20 Sep 2023 19:50:44 +0100 Subject: [PATCH] input: lock focus to last surface on buttons held fixes #3385 --- src/managers/input/InputManager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index ec1534d5..a44e4c51 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -204,10 +204,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) { foundSurface = g_pCompositor->m_pLastFocus; pFoundWindow = g_pCompositor->m_pLastWindow; - if (!g_pCompositor->m_pLastWindow->m_bIsX11) - foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords); - else - surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec(); + surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec(); m_bFocusHeldByButtons = true; m_bRefocusHeldByButtons = refocus;