From f8def68e7e761e33dd51c197ac89194a51fcb60f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 13 Jul 2023 18:05:34 +0200 Subject: idle: implement new protocol --- src/Compositor.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Compositor.hpp') diff --git a/src/Compositor.hpp b/src/Compositor.hpp index 55633fc6..3f7cfac8 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -28,7 +28,8 @@ #include "hyprerror/HyprError.hpp" #include "plugins/PluginSystem.hpp" -enum eManagersInitStage { +enum eManagersInitStage +{ STAGE_PRIORITY = 0, STAGE_LATE }; @@ -53,6 +54,7 @@ class CCompositor { wlr_xdg_activation_v1* m_sWLRXDGActivation; wlr_output_layout* m_sWLROutputLayout; wlr_idle* m_sWLRIdle; + wlr_idle_notifier_v1* m_sWLRIdleNotifier; wlr_layer_shell_v1* m_sWLRLayerShell; wlr_xdg_shell* m_sWLRXDGShell; wlr_cursor* m_sWLRCursor; @@ -170,7 +172,7 @@ class CCompositor { CMonitor* getMonitorInDirection(const char&); void updateAllWindowsAnimatedDecorationValues(); void updateWindowAnimatedDecorationValues(CWindow*); - int getNextAvailableMonitorID(std::string const & name); + int getNextAvailableMonitorID(std::string const& name); void moveWorkspaceToMonitor(CWorkspace*, CMonitor*); void swapActiveWorkspaces(CMonitor*, CMonitor*); CMonitor* getMonitorFromString(const std::string&); @@ -197,6 +199,8 @@ class CCompositor { void performUserChecks(); void moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorkspace); CWindow* getForceFocus(); + void notifyIdleActivity(); + void setIdleActivityInhibit(bool inhibit); std::string explicitConfigPath; -- cgit v1.2.3