mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 07:49:49 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue