mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 10:11:54 -07:00
fix empty workspace name on unspecified default
This commit is contained in:
@@ -81,6 +81,10 @@ void CMonitor::onConnect(bool noRule) {
|
|||||||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID);
|
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID);
|
||||||
PNEWWORKSPACE->startAnim(true, true, true);
|
PNEWWORKSPACE->startAnim(true, true, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (newDefaultWorkspaceName == "")
|
||||||
|
newDefaultWorkspaceName = std::to_string(WORKSPACEID);
|
||||||
|
|
||||||
PNEWWORKSPACE = g_pCompositor->m_vWorkspaces.emplace_back(std::make_unique<CWorkspace>(ID, newDefaultWorkspaceName)).get();
|
PNEWWORKSPACE = g_pCompositor->m_vWorkspaces.emplace_back(std::make_unique<CWorkspace>(ID, newDefaultWorkspaceName)).get();
|
||||||
|
|
||||||
// We are required to set the name here immediately
|
// We are required to set the name here immediately
|
||||||
|
Reference in New Issue
Block a user