diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-12-08 16:02:16 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-12-08 16:02:16 +0000 |
| commit | 11d1c50420cdeaa5426b837a6479455f47368f29 (patch) | |
| tree | e97950e5b627a6572f96db8aeb35a6918f57d8cf /src/Compositor.cpp | |
| parent | 288f1863f0b6886e0cdf85d16bb2460bb042acf2 (diff) | |
windowrules: add focus param
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
