diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-03 17:18:22 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-02-03 17:18:22 +0000 |
| commit | a0bc0e4998f464656e74cbc683986204189ebefb (patch) | |
| tree | 0dd84ba94014a639bbfa4743fe896f203faa73e5 /src/Compositor.cpp | |
| parent | d81f45e54a423cf3af522ca901a2f356d63100c0 (diff) | |
make a null surface focus reset lastfocus
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 1 |
1 files changed, 1 insertions, 0 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; } |
