mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-18 05:23:47 -07:00
dispatchers: fix named ws-es on changeworkspace
This commit is contained in:
@@ -807,7 +807,7 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||||||
|
|
||||||
auto pWorkspaceToChangeTo = g_pCompositor->getWorkspaceByID(workspaceToChangeTo);
|
auto pWorkspaceToChangeTo = g_pCompositor->getWorkspaceByID(workspaceToChangeTo);
|
||||||
if (!pWorkspaceToChangeTo)
|
if (!pWorkspaceToChangeTo)
|
||||||
pWorkspaceToChangeTo = g_pCompositor->createNewWorkspace(workspaceToChangeTo, PMONITOR->ID);
|
pWorkspaceToChangeTo = g_pCompositor->createNewWorkspace(workspaceToChangeTo, PMONITOR->ID, workspaceName);
|
||||||
|
|
||||||
if (pWorkspaceToChangeTo->m_bIsSpecialWorkspace) {
|
if (pWorkspaceToChangeTo->m_bIsSpecialWorkspace) {
|
||||||
PMONITOR->setSpecialWorkspace(pWorkspaceToChangeTo);
|
PMONITOR->setSpecialWorkspace(pWorkspaceToChangeTo);
|
||||||
|
Reference in New Issue
Block a user