input: Fix incorrect localcoords with a surface above an XWayland window (#10773)
This commit is contained in:
parent
0fb63c68e9
commit
9fb6b5d96b
1 changed files with 2 additions and 1 deletions
|
|
@ -322,7 +322,8 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse) {
|
||||||
const auto PWINDOW = HLSurface->getWindow();
|
const auto PWINDOW = HLSurface->getWindow();
|
||||||
surfacePos = BOX->pos();
|
surfacePos = BOX->pos();
|
||||||
pFoundLayerSurface = HLSurface->getLayer();
|
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
|
} else // reset foundSurface, find one normally
|
||||||
foundSurface = nullptr;
|
foundSurface = nullptr;
|
||||||
} else // reset foundSurface, find one normally
|
} else // reset foundSurface, find one normally
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue