monitor: ignore no-op workspace changes

This commit is contained in:
vaxerski 2023-09-03 17:21:55 +02:00
parent 96d555e8e7
commit 5126bfab72

View file

@ -512,6 +512,9 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
return; return;
} }
if (pWorkspace->m_iID == activeWorkspace)
return;
const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(activeWorkspace); const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(activeWorkspace);
activeWorkspace = pWorkspace->m_iID; activeWorkspace = pWorkspace->m_iID;