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 | |
| parent | 40831a90a0354af98e948ce8a4daf6440dc6c390 (diff) | |
config/rule: don't populate ID field for automatically id-managed workspaces
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 6 | ||||
| -rw-r--r-- | src/helpers/MiscFunctions.hpp | 1 |
2 files changed, 7 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; } diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp index d045e826..5feb2de9 100644 --- a/src/helpers/MiscFunctions.hpp +++ b/src/helpers/MiscFunctions.hpp @@ -17,6 +17,7 @@ struct SCallstackFrameInfo { struct SWorkspaceIDName { WORKSPACEID id = WORKSPACE_INVALID; std::string name; + bool isAutoIDd = false; }; std::string absolutePath(const std::string&, const std::string&); |
