diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-10-27 21:29:35 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-10-27 21:29:35 +0000 |
| commit | 431325ff0c9bf76fdda5b68df6d60fa267846c92 (patch) | |
| tree | 3be23fd3cbe2aa2661295f3f73079098c2977ce4 /src/helpers/MiscFunctions.cpp | |
| parent | 40831a90a0354af98e948ce8a4daf6440dc6c390 (diff) | |
config/rule: don't populate ID field for automatically id-managed workspaces
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |
