mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:49:49 +01:00
sort valid ws-es in relative
This commit is contained in:
parent
be6e1a33b1
commit
726732244a
1 changed files with 2 additions and 0 deletions
|
@ -286,6 +286,8 @@ int getWorkspaceIDFromString(const std::string& in, std::string& outName) {
|
|||
validWSes.push_back(ws->m_iID);
|
||||
}
|
||||
|
||||
std::sort(validWSes.begin(), validWSes.end());
|
||||
|
||||
// get the offset
|
||||
remains = remains < 0 ? -((-remains) % validWSes.size()) : remains % validWSes.size();
|
||||
|
||||
|
|
Loading…
Reference in a new issue