summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-24 22:21:31 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-05-24 22:21:31 +0200
commit0ad33742e14f73bb46acf9bad97fe963d495e025 (patch)
treebe4ab119adf336379acced540fce25ada0c50222 /src/Compositor.cpp
parentad7e66adaabb14b3c9e5287c95bcff6cbc1472a1 (diff)
fix workspace event and add activewindow and activemon
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
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) {