diff options
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
