From a69fd21a1ac90c24cee659595d62329f8638d632 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 31 Oct 2022 12:26:07 +0000 Subject: Add an idleinhibit windowrule --- src/Window.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Window.hpp') 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 +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; -- cgit v1.2.3