From a68feb5aa09264beee57a88ee85aefb89680db3b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 12 Apr 2023 13:11:38 +0100 Subject: [PATCH] internal: guarantee activeWindow event type --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 4210ef3a..294ba78e 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -811,7 +811,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ","}); - EMIT_HOOK_EVENT("activeWindow", nullptr); + EMIT_HOOK_EVENT("activeWindow", (CWindow*)nullptr); g_pLayoutManager->getCurrentLayout()->onWindowFocusChange(nullptr);