From 431325ff0c9bf76fdda5b68df6d60fa267846c92 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 27 Oct 2025 21:29:35 +0000 Subject: config/rule: don't populate ID field for automatically id-managed workspaces --- src/helpers/MiscFunctions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/helpers/MiscFunctions.cpp') diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 17ddc633..4cf3c671 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -115,6 +115,10 @@ bool isDirection(const char& arg) { return arg == 'l' || arg == 'r' || arg == 'u' || arg == 'd' || arg == 't' || arg == 'b'; } +static bool isAutoIDdWorkspace(WORKSPACEID id) { + return id < WORKSPACE_INVALID; +} + SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) { SWorkspaceIDName result = {WORKSPACE_INVALID, ""}; @@ -456,6 +460,8 @@ SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) { } } + result.isAutoIDd = isAutoIDdWorkspace(result.id); + return result; } -- cgit v1.2.3