mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
internal: move workspace special check higher in changeWorkspace
This commit is contained in:
@@ -492,6 +492,11 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
|
|||||||
if (!pWorkspace)
|
if (!pWorkspace)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (pWorkspace->m_bIsSpecialWorkspace) {
|
||||||
|
Debug::log(ERR, "BUG THIS: Attempted to changeWorkspace to special!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (pWorkspace->m_iID == activeWorkspace) {
|
if (pWorkspace->m_iID == activeWorkspace) {
|
||||||
// in some cases (e.g. workspace from one monitor to another)
|
// in some cases (e.g. workspace from one monitor to another)
|
||||||
// we need to send this
|
// we need to send this
|
||||||
@@ -500,11 +505,6 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pWorkspace->m_bIsSpecialWorkspace) {
|
|
||||||
Debug::log(ERR, "BUG THIS: Attempted to changeWorkspace to special!");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(activeWorkspace);
|
const auto POLDWORKSPACE = g_pCompositor->getWorkspaceByID(activeWorkspace);
|
||||||
|
|
||||||
activeWorkspace = pWorkspace->m_iID;
|
activeWorkspace = pWorkspace->m_iID;
|
||||||
|
Reference in New Issue
Block a user