From 94b90a2cb0b4a0e13018cd5ebbf09394abf3b96b Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Apr 2026 18:10:25 +0100 Subject: config/lua: add ExpressionVec2, allow using a table for vec2 rules (#14197) --- .../rule/windowRule/WindowRuleApplicator.hpp | 31 +++++++++++----------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/desktop/rule/windowRule/WindowRuleApplicator.hpp') 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 floating; - std::optional fullscreen; - std::optional maximize; - std::optional pseudo; - std::optional pin; - std::optional noInitialFocus; - std::optional center; + std::optional floating; + std::optional fullscreen; + std::optional maximize; + std::optional pseudo; + std::optional pin; + std::optional noInitialFocus; + std::optional center; - std::optional fullscreenStateClient; - std::optional fullscreenStateInternal; - std::optional content; - std::optional noCloseFor; + std::optional fullscreenStateClient; + std::optional fullscreenStateInternal; + std::optional content; + std::optional noCloseFor; - std::string size, position; - std::optional scrollingWidth; + std::optional size, position; + std::optional scrollingWidth; - std::vector suppressEvent; + std::vector suppressEvent; } static_; struct SCustomPropContainer { -- cgit v1.2.3