summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-02-03 17:18:22 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-02-03 17:18:22 +0000
commita0bc0e4998f464656e74cbc683986204189ebefb (patch)
tree0dd84ba94014a639bbfa4743fe896f203faa73e5 /src
parentd81f45e54a423cf3af522ca901a2f356d63100c0 (diff)
make a null surface focus reset lastfocus
Diffstat (limited to 'src')
-rw-r--r--src/Compositor.cpp1
-rw-r--r--src/managers/SessionLockManager.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 616cb829..68b45df9 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -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;
}
diff --git a/src/managers/SessionLockManager.cpp b/src/managers/SessionLockManager.cpp
index 5473cb29..c3336ace 100644
--- a/src/managers/SessionLockManager.cpp
+++ b/src/managers/SessionLockManager.cpp
@@ -108,8 +108,6 @@ void CSessionLockManager::onNewSessionLock(wlr_session_lock_v1* pWlrLock) {
g_pCompositor->m_sSeat.exclusiveClient = nullptr;
- g_pInputManager->refocus();
-
g_pCompositor->focusSurface(nullptr);
for (auto& m : g_pCompositor->m_vMonitors)