diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-28 18:10:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-28 18:10:25 +0100 |
| commit | 94b90a2cb0b4a0e13018cd5ebbf09394abf3b96b (patch) | |
| tree | 484d32baaab1acdaab7a817c86aa89f117a21059 /src/desktop/rule/windowRule/WindowRuleApplicator.hpp | |
| parent | ab75bbfbecdfb4a0355106f740944c87cb9edd4c (diff) | |
config/lua: add ExpressionVec2, allow using a table for vec2 rules (#14197)
Diffstat (limited to 'src/desktop/rule/windowRule/WindowRuleApplicator.hpp')
| -rw-r--r-- | src/desktop/rule/windowRule/WindowRuleApplicator.hpp | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/desktop/rule/windowRule/WindowRuleApplicator.hpp b/src/desktop/rule/windowRule/WindowRuleApplicator.hpp index 1e52ed5c..f5e43609 100644 --- a/src/desktop/rule/windowRule/WindowRuleApplicator.hpp +++ b/src/desktop/rule/windowRule/WindowRuleApplicator.hpp @@ -8,6 +8,7 @@ #include "../Rule.hpp" #include "../../types/OverridableVar.hpp" #include "../../../helpers/math/Math.hpp" +#include "../../../helpers/math/Expression.hpp" #include "../../../helpers/TagKeeper.hpp" #include "../../../config/shared/complex/ComplexDataTypes.hpp" @@ -38,25 +39,25 @@ namespace Desktop::Rule { // static props struct { - std::string monitor, workspace, group; + std::string monitor, workspace, group; - std::optional<bool> floating; - std::optional<bool> fullscreen; - std::optional<bool> maximize; - std::optional<bool> pseudo; - std::optional<bool> pin; - std::optional<bool> noInitialFocus; - std::optional<bool> center; + std::optional<bool> floating; + std::optional<bool> fullscreen; + std::optional<bool> maximize; + std::optional<bool> pseudo; + std::optional<bool> pin; + std::optional<bool> noInitialFocus; + std::optional<bool> center; - std::optional<int> fullscreenStateClient; - std::optional<int> fullscreenStateInternal; - std::optional<int> content; - std::optional<int> noCloseFor; + std::optional<int> fullscreenStateClient; + std::optional<int> fullscreenStateInternal; + std::optional<int> content; + std::optional<int> noCloseFor; - std::string size, position; - std::optional<float> scrollingWidth; + std::optional<Math::SExpressionVec2> size, position; + std::optional<float> scrollingWidth; - std::vector<std::string> suppressEvent; + std::vector<std::string> suppressEvent; } static_; struct SCustomPropContainer { |
