mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 14:45:59 +01:00
fix empty workspace name on unspecified default
This commit is contained in:
parent
c9c4b14ef2
commit
427bc35b6b
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ void CMonitor::onConnect(bool noRule) {
|
|||
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID);
|
||||
PNEWWORKSPACE->startAnim(true, true, true);
|
||||
} else {
|
||||
|
||||
if (newDefaultWorkspaceName == "")
|
||||
newDefaultWorkspaceName = std::to_string(WORKSPACEID);
|
||||
|
||||
PNEWWORKSPACE = g_pCompositor->m_vWorkspaces.emplace_back(std::make_unique<CWorkspace>(ID, newDefaultWorkspaceName)).get();
|
||||
|
||||
// We are required to set the name here immediately
|
||||
|
|
Loading…
Reference in a new issue