aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-12-26 13:26:53 +0100
committervaxerski <[email protected]>2022-12-26 13:27:02 +0100
commit545e63d1dd14c76e9faad7839ad255dc9ead4cd8 (patch)
tree318cedf6d102503635ab389e8cda7feb4e2821a9
parentfa79703b0441d2bcbdfdc2f6b896b344a0e53641 (diff)
downloadHyprland-545e63d1dd14c76e9faad7839ad255dc9ead4cd8.tar.gz
Hyprland-545e63d1dd14c76e9faad7839ad255dc9ead4cd8.zip
sanity check workspaces after enabling mirror
-rw-r--r--src/helpers/Monitor.cpp2
1 files changed, 2 insertions, 0 deletions
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();
}
}