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