aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-03 17:21:55 +0200
committervaxerski <[email protected]>2023-09-03 17:21:55 +0200
commit5126bfab72ff0cf74ebd4c6346e19ac52ea7b00b (patch)
tree2d8421e27aaf6faa514dcc5135b135a26126c7cc
parent96d555e8e794627bfc561e294e148ab8a9961fcc (diff)
downloadHyprland-5126bfab72ff0cf74ebd4c6346e19ac52ea7b00b.tar.gz
Hyprland-5126bfab72ff0cf74ebd4c6346e19ac52ea7b00b.zip
monitor: ignore no-op workspace changes
-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 773b0045..bdd56196 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -512,6 +512,9 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
return;
}
+ if (pWorkspace->m_iID == activeWorkspace)
+ return;
+
const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(activeWorkspace);
activeWorkspace = pWorkspace->m_iID;