diff options
| author | Jef <54236+ElJeffe@users.noreply.github.com> | 2022-11-15 11:21:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-15 10:21:26 +0000 |
| commit | dbb67327430574fc9c68a03bc6b896478560e95f (patch) | |
| tree | b48bdc8463868eee0cb99dafa094f2a6f4f10e98 /src/Window.hpp | |
| parent | 4034aa2c60d7ed88cb64e7c36f42ec388c28cfb2 (diff) | |
apply some rules dynamically when state of window changes (#1020)
Co-authored-by: Jef Steelant <jef.steelant_ext@softathome.com>
Diffstat (limited to 'src/Window.hpp')
| -rw-r--r-- | src/Window.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
