diff options
| author | giskard <rtgiskard@gmail.com> | 2024-05-29 05:37:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-28 23:37:24 +0200 |
| commit | ebf258788e46cd0320fb17138ba413f719180418 (patch) | |
| tree | d7b96e24caab26cb3d46b2857eebf90ad475b2a9 /src/desktop/Window.hpp | |
| parent | 73b133d0155d376f35833cd992f821399a42f76b (diff) | |
config: add tag dispacther and window rule (#6211)
Diffstat (limited to 'src/desktop/Window.hpp')
| -rw-r--r-- | src/desktop/Window.hpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp index 473ce361..d4e26d5d 100644 --- a/src/desktop/Window.hpp +++ b/src/desktop/Window.hpp @@ -1,18 +1,21 @@ #pragma once -#include "../defines.hpp" -#include "Subsurface.hpp" -#include "../helpers/AnimatedVariable.hpp" -#include "../render/decorations/IHyprWindowDecoration.hpp" #include <deque> +#include <string> + #include "../config/ConfigDataValues.hpp" +#include "../defines.hpp" +#include "../helpers/AnimatedVariable.hpp" #include "../helpers/Vector2D.hpp" -#include "WLSurface.hpp" -#include "Popup.hpp" +#include "../helpers/signal/Signal.hpp" +#include "../helpers/TagKeeper.hpp" #include "../macros.hpp" #include "../managers/XWaylandManager.hpp" +#include "../render/decorations/IHyprWindowDecoration.hpp" #include "DesktopTypes.hpp" -#include "../helpers/signal/Signal.hpp" +#include "Popup.hpp" +#include "Subsurface.hpp" +#include "WLSurface.hpp" class CXDGSurfaceResource; class CXWaylandSurface; @@ -183,6 +186,7 @@ struct SWindowRule { std::string szClass; std::string szInitialTitle; std::string szInitialClass; + std::string szTag; int bX11 = -1; // -1 means "ANY" int bFloating = -1; int bFullscreen = -1; @@ -365,6 +369,9 @@ class CWindow { // stores the currently matched window rules std::vector<SWindowRule> m_vMatchedRules; + // window tags + CTagKeeper m_tags; + // For the list lookup bool operator==(const CWindow& rhs) { return m_pXDGSurface == rhs.m_pXDGSurface && m_pXWaylandSurface == rhs.m_pXWaylandSurface && m_vPosition == rhs.m_vPosition && m_vSize == rhs.m_vSize && |
