diff options
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 |
