aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-08 09:46:17 +0000
committervaxerski <[email protected]>2023-03-08 09:46:17 +0000
commit92d2331170ce738056ad6bc63fa346174b954f66 (patch)
tree816d780b03e2b30ec3e48e5c2b5cea6e852138bd /src
parenta85a6fa6c8ff9e51ba774cec112b408bce601451 (diff)
downloadHyprland-92d2331170ce738056ad6bc63fa346174b954f66.tar.gz
Hyprland-92d2331170ce738056ad6bc63fa346174b954f66.zip
Events: Avoid sending std::nullptr_t in keyboardFocus
Diffstat (limited to 'src')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}