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