input: fix minor issue with holding focus

This commit is contained in:
vaxerski 2023-04-02 13:42:57 +01:00
parent 0fc145c52c
commit b1426cad28
2 changed files with 3 additions and 2 deletions

View file

@ -2164,7 +2164,7 @@ SLayerSurface* CCompositor::getLayerSurfaceFromSurface(wlr_surface* pSurface) {
return;
}
};
if (!ls->layerSurface || !ls->mapped)
continue;

View file

@ -160,9 +160,10 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
}
} else if (g_pCompositor->m_pLastWindow) {
foundSurface = g_pCompositor->m_pLastFocus;
pFoundWindow = g_pCompositor->m_pLastWindow;
if (!g_pCompositor->m_pLastWindow->m_bIsX11)
g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords);
foundSurface = g_pCompositor->vectorWindowToSurface(mouseCoords, g_pCompositor->m_pLastWindow, surfaceCoords);
else
surfacePos = g_pCompositor->m_pLastWindow->m_vRealPosition.vec();