compositor: make sure we don't ret early on no surface

if there is no implicit surface passed, make sure the current focus is not null, otherwise we nope early without focusing the window

fixes #8293
This commit is contained in:
Vaxry 2024-11-09 02:27:01 +00:00
parent 726d697821
commit b9c439a55e

View file

@ -1062,7 +1062,7 @@ void CCompositor::focusWindow(PHLWINDOW pWindow, SP<CWLSurfaceResource> pSurface
return; return;
} }
if (m_pLastWindow.lock() == pWindow && g_pSeatManager->state.keyboardFocus == pSurface) if (m_pLastWindow.lock() == pWindow && g_pSeatManager->state.keyboardFocus == pSurface && g_pSeatManager->state.keyboardFocus)
return; return;
if (pWindow->m_bPinned) if (pWindow->m_bPinned)