input: fix focus on maximized bg surfaces

This commit is contained in:
Vaxry 2024-04-06 18:59:23 +01:00
parent d846e82832
commit ff114cf6f9

View file

@ -273,12 +273,14 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
&pFoundLayerSurface);
}
if (!foundSurface) {
pFoundWindow = g_pCompositor->vectorToWindowUnified(mouseCoords, RESERVED_EXTENTS | INPUT_EXTENTS | ALLOW_FLOATING);
if (!(pFoundWindow && pFoundWindow->m_bIsFloating && pFoundWindow->m_bCreatedOverFullscreen))
pFoundWindow = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID);
}
}
}
} else {
pFoundWindow = g_pCompositor->vectorToWindowUnified(mouseCoords, RESERVED_EXTENTS | INPUT_EXTENTS | ALLOW_FLOATING);