mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 03:09:48 +01:00
monitor: ignore no-op workspace changes
This commit is contained in:
parent
96d555e8e7
commit
5126bfab72
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue