diff options
| author | 7mile <i@7li.moe> | 2025-06-19 04:48:51 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 22:48:51 +0200 |
| commit | 9fb6b5d96bfd242990b1bf08bd42d24bed8fb4bc (patch) | |
| tree | 197acab2f5dc1e5a3b7d2a6b6604b33cad885817 /src/managers/input/InputManager.cpp | |
| parent | 0fb63c68e9c5112815d168cb283324dd9136e691 (diff) | |
input: Fix incorrect localcoords with a surface above an XWayland window (#10773)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index e0957abf..f3f1905d 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -322,7 +322,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) { const auto PWINDOW = HLSurface->getWindow(); surfacePos = BOX->pos(); pFoundLayerSurface = HLSurface->getLayer(); - pFoundWindow = !PWINDOW || PWINDOW->isHidden() ? g_pCompositor->m_lastWindow.lock() : PWINDOW; + if (!pFoundLayerSurface) + pFoundWindow = !PWINDOW || PWINDOW->isHidden() ? g_pCompositor->m_lastWindow.lock() : PWINDOW; } else // reset foundSurface, find one normally foundSurface = nullptr; } else // reset foundSurface, find one normally |
