summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-01 13:57:27 +0100
committerVaxry <vaxry@vaxry.net>2024-05-01 13:57:32 +0100
commit4ed6b69b68a544a81cec583a1ad8aff218f7db5d (patch)
treeef06fa787edc3a6edd9b2d340edce9657b548387 /src/Compositor.cpp
parentd2899a6c272d4619295543b5b4c77b40fa1934bf (diff)
socket2: fix empty activewindowv2 events
fixes #5827
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 6000a67c..a4647afe 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -954,7 +954,7 @@ void CCompositor::focusWindow(PHLWINDOW pWindow, wlr_surface* pSurface) {
wlr_seat_keyboard_notify_clear_focus(m_sSeat.seat);
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","});
- g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ","});
+ g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ""});
EMIT_HOOK_EVENT("activeWindow", (PHLWINDOW) nullptr);
@@ -1064,7 +1064,7 @@ void CCompositor::focusSurface(wlr_surface* pSurface, PHLWINDOW pWindowOwner) {
if (!pSurface) {
wlr_seat_keyboard_clear_focus(m_sSeat.seat);
g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // unfocused
- g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ","});
+ g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", ""});
EMIT_HOOK_EVENT("keyboardFocus", (wlr_surface*)nullptr);
m_pLastFocus = nullptr;
return;