From dbb67327430574fc9c68a03bc6b896478560e95f Mon Sep 17 00:00:00 2001 From: Jef <54236+ElJeffe@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:21:26 +0100 Subject: apply some rules dynamically when state of window changes (#1020) Co-authored-by: Jef Steelant --- src/Window.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/Window.hpp') diff --git a/src/Window.hpp b/src/Window.hpp index a8e1bd6b..b0014af9 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -39,6 +39,19 @@ struct SWindowAdditionalConfigData { bool windowDanceCompat = false; }; +struct SWindowRule { + std::string szRule; + std::string szValue; + + bool v2 = false; + std::string szTitle; + std::string szClass; + int bX11 = -1; // -1 means "ANY" + int bFloating = -1; + int bFullscreen = -1; + int bPinned = -1; +}; + class CWindow { public: CWindow(); @@ -189,6 +202,8 @@ public: void onMap(); void setHidden(bool hidden); bool isHidden(); + void applyDynamicRule(const SWindowRule& r); + void updateDynamicRules(); private: // For hidden windows and stuff -- cgit v1.2.3