mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 07:45:59 +01:00
fix special workspace dispatcher logic
This commit is contained in:
parent
abb6db9c37
commit
696253b348
1 changed files with 3 additions and 3 deletions
|
@ -589,7 +589,7 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||||
if (!*PALLOWWORKSPACECYCLES)
|
if (!*PALLOWWORKSPACECYCLES)
|
||||||
PCURRENTWORKSPACE->m_iPrevWorkspaceID = -1;
|
PCURRENTWORKSPACE->m_iPrevWorkspaceID = -1;
|
||||||
|
|
||||||
} else if (PCURRENTWORKSPACE->m_iID == workspaceToChangeTo)
|
} else if (PCURRENTWORKSPACE->m_iID == workspaceToChangeTo && !internal)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// remove constraints
|
// remove constraints
|
||||||
|
@ -840,10 +840,10 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
||||||
|
|
||||||
for (auto& m : g_pCompositor->m_vMonitors)
|
for (auto& m : g_pCompositor->m_vMonitors)
|
||||||
m->specialWorkspaceOpen = false;
|
m->specialWorkspaceOpen = false;
|
||||||
|
} else {
|
||||||
|
g_pCompositor->focusWindow(PWINDOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pCompositor->focusWindow(PWINDOW);
|
|
||||||
|
|
||||||
PWINDOW->updateToplevel();
|
PWINDOW->updateToplevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue