From 75b7e661e798b9a32ccb00e0c7e4362c540ff4a9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 25 Nov 2022 19:52:23 +0000 Subject: [PATCH] damage windows after switch --- src/layout/DwindleLayout.cpp | 3 +++ src/layout/MasterLayout.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index f52dc779..cc6051de 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -1134,6 +1134,9 @@ void CHyprDwindleLayout::switchWindows(CWindow* pWindow, CWindow* pWindow2) { ACTIVE2->pWindow->m_vPosition = ACTIVE2->position; ACTIVE2->pWindow->m_vSize = ACTIVE2->size; } + + g_pHyprRenderer->damageWindow(pWindow); + g_pHyprRenderer->damageWindow(pWindow2); } void CHyprDwindleLayout::alterSplitRatioBy(CWindow* pWindow, float ratio) { diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index e22ef5d4..969eedb6 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -498,6 +498,9 @@ void CHyprMasterLayout::switchWindows(CWindow* pWindow, CWindow* pWindow2) { recalculateMonitor(pWindow->m_iMonitorID); if (PNODE2->workspaceID != PNODE->workspaceID) recalculateMonitor(pWindow2->m_iMonitorID); + + g_pHyprRenderer->damageWindow(pWindow); + g_pHyprRenderer->damageWindow(pWindow2); } void CHyprMasterLayout::alterSplitRatioBy(CWindow* pWindow, float ratio) {