Events: Avoid sending std::nullptr_t in keyboardFocus

This commit is contained in:
Vaxry 2023-03-08 09:46:17 +00:00
parent a85a6fa6c8
commit 92d2331170
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}