From 11d1c50420cdeaa5426b837a6479455f47368f29 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 8 Dec 2023 16:02:16 +0000 Subject: windowrules: add focus param --- src/Compositor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 98f51204..f3d048a9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -943,6 +943,8 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { // we need to make the PLASTWINDOW not equal to m_pLastWindow so that RENDERDATA is correct for an unfocused window if (windowValidMapped(PLASTWINDOW)) { + PLASTWINDOW->updateDynamicRules(); + updateWindowAnimatedDecorationValues(PLASTWINDOW); if (!pWindow->m_bIsX11 || pWindow->m_iX11Type == 1) @@ -960,6 +962,8 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { g_pXWaylandManager->activateWindow(pWindow, true); // sets the m_pLastWindow + pWindow->updateDynamicRules(); + updateWindowAnimatedDecorationValues(pWindow); if (pWindow->m_bIsUrgent) -- cgit v1.2.3