mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 08:09:50 +01:00
Events: Avoid sending std::nullptr_t in keyboardFocus
This commit is contained in:
parent
a85a6fa6c8
commit
92d2331170
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue