From 545e63d1dd14c76e9faad7839ad255dc9ead4cd8 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 26 Dec 2022 13:26:53 +0100 Subject: [PATCH] sanity check workspaces after enabling mirror --- src/helpers/Monitor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 74b18859..b27b2c4c 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -407,6 +407,8 @@ void CMonitor::setMirror(const std::string& mirrorOf) { std::erase_if(g_pCompositor->m_vMonitors, [&](const auto& other) { return other.get() == this; }); g_pCompositor->setActiveMonitor(g_pCompositor->m_vMonitors.front().get()); + + g_pCompositor->sanityCheckWorkspaces(); } }