feat: strip workspace qualifiers when creating windows

This commit is contained in:
Brenno Lemos 2024-01-10 02:24:51 -03:00
parent c69a6dde67
commit 9e08512927
1 changed files with 5 additions and 0 deletions

View File

@ -1023,6 +1023,11 @@ void WindowCreationPayload::clearWorkspaceName() {
m_workspaceName = m_workspaceName.substr(
SPECIAL_QUALIFIER_PREFIX_LEN, m_workspaceName.length() - SPECIAL_QUALIFIER_PREFIX_LEN);
}
std::size_t spaceFound = m_workspaceName.find(' ');
if (spaceFound != std::string::npos) {
m_workspaceName.erase(m_workspaceName.begin() + spaceFound, m_workspaceName.end());
}
}
void WindowCreationPayload::moveToWorksace(std::string &new_workspace_name) {