mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 04:45:58 +01:00
post empty activewindow event on unfocus
This commit is contained in:
parent
19a168792b
commit
8145c552de
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ void CKeybindManager::killActive(std::string args) {
|
||||||
g_pXWaylandManager->sendCloseWindow(g_pCompositor->m_pLastWindow);
|
g_pXWaylandManager->sendCloseWindow(g_pCompositor->m_pLastWindow);
|
||||||
g_pCompositor->m_pLastFocus = nullptr;
|
g_pCompositor->m_pLastFocus = nullptr;
|
||||||
g_pCompositor->m_pLastWindow = 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());
|
g_pCompositor->focusWindow(g_pCompositor->windowFromCursor());
|
||||||
|
|
Loading…
Reference in a new issue