mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 20:21:54 -07:00
sort valid ws-es in relative
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user