summaryrefslogtreecommitdiff
path: root/src/layout/MasterLayout.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-25 19:52:23 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-25 19:52:23 +0000
commit75b7e661e798b9a32ccb00e0c7e4362c540ff4a9 (patch)
tree7630e22f6b70bd12a691b7bce81806a6d4d9828c /src/layout/MasterLayout.cpp
parent381d7a430072c7b29bc5f5eb808ffbb86abefbd1 (diff)
damage windows after switch
Diffstat (limited to 'src/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp3
1 files changed, 3 insertions, 0 deletions
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) {