fix focus not applying sometimes to the active window

This commit is contained in:
vaxerski 2022-04-14 18:16:09 +02:00
parent 158af1eb09
commit ebfbd4f7c3

View file

@ -366,7 +366,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
return;
}
if (m_pLastWindow == pWindow)
if (m_pLastWindow == pWindow && m_sSeat.seat->keyboard_state.focused_surface == pSurface)
return;
if (windowValidMapped(m_pLastWindow) && m_pLastWindow->m_bIsX11) {