From 8145c552de762bbdb8ddd63b386f4b5a0709bd6c Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 26 May 2022 21:34:52 +0200 Subject: [PATCH] post empty activewindow event on unfocus --- src/managers/KeybindManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 10d47849..7b7d488c 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -133,6 +133,7 @@ void CKeybindManager::killActive(std::string args) { g_pXWaylandManager->sendCloseWindow(g_pCompositor->m_pLastWindow); g_pCompositor->m_pLastFocus = nullptr; g_pCompositor->m_pLastWindow = nullptr; + g_pEventManager->postEvent(SHyprIPCEvent("activewindow", ",")); // post an activewindow event to empty, as we are currently unfocused } g_pCompositor->focusWindow(g_pCompositor->windowFromCursor());