summaryrefslogtreecommitdiff
path: root/src/Compositor.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-13 18:05:34 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-13 18:05:34 +0200
commitf8def68e7e761e33dd51c197ac89194a51fcb60f (patch)
tree1d12af5dd8df5f7e9897237d9b902804eade1281 /src/Compositor.hpp
parent9f7382bca4ddc6617b0524645335723763c55302 (diff)
idle: implement new protocol
Diffstat (limited to 'src/Compositor.hpp')
-rw-r--r--src/Compositor.hpp8
1 files changed, 6 insertions, 2 deletions
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;