mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 12:26:00 +01:00
Fix relative IDs in movetoworkspace crashing
This commit is contained in:
parent
e81790f357
commit
7167be9c48
1 changed files with 2 additions and 2 deletions
|
@ -820,8 +820,8 @@ CWorkspace* CCompositor::getWorkspaceByString(const std::string& str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int id = std::stoi(str);
|
std::string name = "";
|
||||||
return getWorkspaceByID(id);
|
return getWorkspaceByID(getWorkspaceIDFromString(str, name));
|
||||||
} catch (std::exception& e) {
|
} catch (std::exception& e) {
|
||||||
Debug::log(ERR, "Error in getWorkspaceByString, invalid id");
|
Debug::log(ERR, "Error in getWorkspaceByString, invalid id");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue