summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorphonetic112 <73647246+phonetic112@users.noreply.github.com>2025-03-14 20:22:39 -0400
committerGitHub <noreply@github.com>2025-03-15 01:22:39 +0100
commite59680481d74fdfcc432bb9640ba2c979022c4c2 (patch)
tree1e6839e146fa6d7976c4bc575c11d66845672c97 /src/managers/input/InputManager.cpp
parentf4315db50f058df3620b1e03a75aa2192aa08c81 (diff)
input: Fix clicking through groupbar tabs (#9606)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 04f2ae3e..8ca8c21d 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -293,9 +293,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
const auto BOX = HLSurface->getSurfaceBoxGlobal();
if (BOX) {
+ const auto PWINDOW = HLSurface->getWindow();
surfacePos = BOX->pos();
pFoundLayerSurface = HLSurface->getLayer();
- pFoundWindow = HLSurface->getWindow();
+ pFoundWindow = !PWINDOW || PWINDOW->isHidden() ? g_pCompositor->m_pLastWindow.lock() : PWINDOW;
} else // reset foundSurface, find one normally
foundSurface = nullptr;
} else // reset foundSurface, find one normally