make a null surface focus reset lastfocus

This commit is contained in:
vaxerski
2023-02-03 17:18:22 +00:00
parent d81f45e54a
commit a0bc0e4998
2 changed files with 1 additions and 2 deletions

View File

@@ -902,6 +902,7 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused
g_pInputManager->m_sIMERelay.onKeyboardFocus(nullptr);
g_pCompositor->m_pLastFocus = nullptr;
return;
}