From 0ad33742e14f73bb46acf9bad97fe963d495e025 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 24 May 2022 22:21:31 +0200 Subject: fix workspace event and add activewindow and activemon --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c8376c29..868f15e0 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -453,6 +453,9 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { pWindow->m_cRealBorderColor = RENDERDATA.borderColor; else pWindow->m_cRealBorderColor = CColor(g_pConfigManager->getInt("general:col.active_border")); + + // Send an event + g_pEventManager->postEvent(SHyprIPCEvent("activewindow", pWindow->m_szTitle)); } void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) { -- cgit v1.2.3