mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-09 16:41:53 -07:00
make a null surface focus reset lastfocus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user