From 4881246e715b44f4557f8b7a376232372f96c8c8 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sat, 21 Jan 2023 11:43:14 +0100 Subject: [PATCH] fix: top layer surface not receiving clicks, hopefully --- src/managers/input/InputManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 3995c5b8..200ccbaf 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -414,7 +414,8 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) { g_pCompositor->moveWindowToTop(g_pCompositor->m_pLastWindow); // clicking on border triggers resize - if (*PRESIZEONBORDER && g_pCompositor->m_pLastWindow && !g_pCompositor->m_pLastWindow->m_bIsFullscreen && !g_pCompositor->m_pLastWindow->m_bFakeFullscreenState) { + if (*PRESIZEONBORDER && g_pCompositor->m_pLastWindow && !m_bLastFocusOnLS && !g_pCompositor->m_pLastWindow->m_bIsFullscreen && + !g_pCompositor->m_pLastWindow->m_bFakeFullscreenState) { const wlr_box real = {g_pCompositor->m_pLastWindow->m_vRealPosition.vec().x, g_pCompositor->m_pLastWindow->m_vRealPosition.vec().y, g_pCompositor->m_pLastWindow->m_vRealSize.vec().x, g_pCompositor->m_pLastWindow->m_vRealSize.vec().y}; const auto mouseCoords = g_pInputManager->getMouseCoordsInternal();