From 92d2331170ce738056ad6bc63fa346174b954f66 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 8 Mar 2023 09:46:17 +0000 Subject: [PATCH] Events: Avoid sending std::nullptr_t in keyboardFocus --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 66e23b67..04202a02 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -939,7 +939,7 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) { wlr_seat_keyboard_clear_focus(m_sSeat.seat); g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ","}); - EMIT_HOOK_EVENT("keyboardFocus", nullptr); + EMIT_HOOK_EVENT("keyboardFocus", (wlr_surface*)nullptr); m_pLastFocus = nullptr; return; }