fix workspace event and add activewindow and activemon

This commit is contained in:
vaxerski
2022-05-24 22:21:31 +02:00
parent ad7e66adaa
commit 0ad33742e1
3 changed files with 8 additions and 5 deletions

View File

@@ -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) {