config: add tag dispacther and window rule (#6211)
This commit is contained in:
parent
73b133d015
commit
ebf258788e
9 changed files with 190 additions and 51 deletions
18
src/helpers/TagKeeper.hpp
Normal file
18
src/helpers/TagKeeper.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <set>
|
||||
|
||||
class CTagKeeper {
|
||||
public:
|
||||
bool isTagged(const std::string& tag, bool strict = false);
|
||||
bool applyTag(const std::string& tag, bool dynamic = false);
|
||||
bool removeDynamicTags();
|
||||
|
||||
inline const auto& getTags() {
|
||||
return m_tags;
|
||||
};
|
||||
|
||||
private:
|
||||
std::set<std::string> m_tags;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue