Skip to content

Commit

Permalink
feat: strip workspace qualifiers when creating windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Syndelis committed Jan 10, 2024
1 parent c69a6dd commit 9e08512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9e08512

Please sign in to comment.