From 5126bfab72ff0cf74ebd4c6346e19ac52ea7b00b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 3 Sep 2023 17:21:55 +0200 Subject: [PATCH] monitor: ignore no-op workspace changes --- src/helpers/Monitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 773b00457..bdd561961 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;