summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorVirt <41426325+VirtCode@users.noreply.github.com>2024-07-07 21:27:18 +0200
committerGitHub <noreply@github.com>2024-07-07 21:27:18 +0200
commit22138ac259b2f4253be29311f6b60fbd675074b4 (patch)
tree66a2f2b4b0405dd1871f1ad32c6678f1d1a26d17 /src/helpers/Monitor.cpp
parent19fb13e6cf7c9125b471780156fc423118914fb7 (diff)
workspaces: don't try to reopen special workspaces (#6802)
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 199b1c5d..20c2e81e 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -652,6 +652,9 @@ void CMonitor::changeWorkspace(const int& id, bool internal, bool noMouseMove, b
}
void CMonitor::setSpecialWorkspace(const PHLWORKSPACE& pWorkspace) {
+ if (activeSpecialWorkspace == pWorkspace)
+ return;
+
g_pHyprRenderer->damageMonitor(this);
if (!pWorkspace) {