mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-01-07 01:08:19 +03:00
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:
parent
726d697821
commit
b9c439a55e
@ -1062,7 +1062,7 @@ void CCompositor::focusWindow(PHLWINDOW pWindow, SP<CWLSurfaceResource> pSurface
|
||||
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;
|
||||
|
||||
if (pWindow->m_bPinned)
|
||||
|
Loading…
Reference in New Issue
Block a user