socket2: fix empty activewindowv2 events

fixes #5827
This commit is contained in:
Vaxry
2024-05-01 13:57:27 +01:00
parent d2899a6c27
commit 4ed6b69b68
2 changed files with 3 additions and 3 deletions

View File

@@ -772,7 +772,7 @@ void Events::listener_unmapWindow(void* owner, void* data) {
// CWindow::onUnmap will remove this window's active status, but we can't really do it above.
if (PWINDOW == g_pCompositor->m_pLastWindow.lock() || !g_pCompositor->m_pLastWindow.lock()) {
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","});
g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ","});
g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ""});
EMIT_HOOK_EVENT("activeWindow", (PHLWINDOW) nullptr);
}
} else {