diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-21 16:29:30 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-21 16:54:52 +0100 |
| commit | d9fe1d0f58bcafd22ee23097de41e7039a36afe2 (patch) | |
| tree | 4804487f925b796defc244991bf34ad8a07b3e7e /src/managers/input/InputManager.cpp | |
| parent | e823b5d6930af15c1a9c1d76682e8e7be4a0eeb6 (diff) | |
idle-inhibit: move to new impl
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index bf784af1..114a6c83 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -5,6 +5,7 @@ #include "../../config/ConfigValue.hpp" #include "../../desktop/Window.hpp" #include "../../protocols/CursorShape.hpp" +#include "../../protocols/IdleInhibit.hpp" CInputManager::CInputManager() { m_sListeners.setCursorShape = PROTO::cursorShape->events.setShape.registerListener([this](std::any data) { @@ -29,6 +30,8 @@ CInputManager::CInputManager() { m_sCursorSurfaceInfo.inUse = true; g_pHyprRenderer->setCursorFromName(m_sCursorSurfaceInfo.name); }); + + m_sListeners.newIdleInhibitor = PROTO::idleInhibit->events.newIdleInhibitor.registerListener([this](std::any data) { this->newIdleInhibitor(data); }); } CInputManager::~CInputManager() { @@ -38,7 +41,7 @@ CInputManager::~CInputManager() { m_lTablets.clear(); m_lTabletTools.clear(); m_lTabletPads.clear(); - m_lIdleInhibitors.clear(); + m_vIdleInhibitors.clear(); m_lTouchDevices.clear(); m_lSwitches.clear(); } |
