mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:25:59 +01:00
make a null surface focus reset lastfocus
This commit is contained in:
parent
d81f45e54a
commit
a0bc0e4998
2 changed files with 1 additions and 2 deletions
|
@ -902,6 +902,7 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) {
|
||||||
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
|
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused
|
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused
|
||||||
g_pInputManager->m_sIMERelay.onKeyboardFocus(nullptr);
|
g_pInputManager->m_sIMERelay.onKeyboardFocus(nullptr);
|
||||||
|
g_pCompositor->m_pLastFocus = nullptr;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,6 @@ void CSessionLockManager::onNewSessionLock(wlr_session_lock_v1* pWlrLock) {
|
||||||
|
|
||||||
g_pCompositor->m_sSeat.exclusiveClient = nullptr;
|
g_pCompositor->m_sSeat.exclusiveClient = nullptr;
|
||||||
|
|
||||||
g_pInputManager->refocus();
|
|
||||||
|
|
||||||
g_pCompositor->focusSurface(nullptr);
|
g_pCompositor->focusSurface(nullptr);
|
||||||
|
|
||||||
for (auto& m : g_pCompositor->m_vMonitors)
|
for (auto& m : g_pCompositor->m_vMonitors)
|
||||||
|
|
Loading…
Reference in a new issue