diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-31 12:26:07 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-31 12:26:07 +0000 |
| commit | a69fd21a1ac90c24cee659595d62329f8638d632 (patch) | |
| tree | c1c1302b9a732f52607df7c0c6f43525caf3a9f9 /src/Window.hpp | |
| parent | b6e33830af1a89a2cfbef446de1fc37e8a2b40e3 (diff) | |
Add an idleinhibit windowrule
Diffstat (limited to 'src/Window.hpp')
| -rw-r--r-- | src/Window.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Window.hpp b/src/Window.hpp index 236ee47b..bf77454c 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -7,6 +7,13 @@ #include "render/decorations/IHyprWindowDecoration.hpp" #include <deque> +enum eIdleInhibitMode { + IDLEINHIBIT_NONE = 0, + IDLEINHIBIT_ALWAYS, + IDLEINHIBIT_FULLSCREEN, + IDLEINHIBIT_FOCUS +}; + struct SWindowSpecialRenderData { float alpha = 1.f; float alphaInactive = -1.f; // -1 means unset @@ -154,6 +161,9 @@ public: uint64_t m_iLastToplevelMonitorID = -1; uint64_t m_iLastSurfaceMonitorID = -1; + // for idle inhibiting windows + eIdleInhibitMode m_eIdleInhibitMode = IDLEINHIBIT_NONE; + // For the list lookup bool operator==(const CWindow& rhs) { return m_uSurface.xdg == rhs.m_uSurface.xdg && m_uSurface.xwayland == rhs.m_uSurface.xwayland && m_vPosition == rhs.m_vPosition && m_vSize == rhs.m_vSize && m_bFadingOut == rhs.m_bFadingOut; |
