From 7167be9c482760c81f70153f4457f60cca4e9c80 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 30 May 2022 14:18:46 +0200 Subject: [PATCH] Fix relative IDs in movetoworkspace crashing --- src/Compositor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 29e2f188..0b60369d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -820,8 +820,8 @@ CWorkspace* CCompositor::getWorkspaceByString(const std::string& str) { } try { - int id = std::stoi(str); - return getWorkspaceByID(id); + std::string name = ""; + return getWorkspaceByID(getWorkspaceIDFromString(str, name)); } catch (std::exception& e) { Debug::log(ERR, "Error in getWorkspaceByString, invalid id"); }