dispatchers: add forceidle (#11922)

The forceidle dispatcher resets all ext-idle-notify timers as if the
user had been idle for the specified number of seconds. If a
notification has already fired, but would now be set with a nonzero
delay, then it is reset. Conversely, if a timer has not yet fired, but
would now be set to a nonpositive delay, then it is immediately fired.
This process ignores any existing inhibitors, but timers are otherwise
reset as normal if any new inhibitors are created or destroyed.
This commit is contained in:
MithicSpirit 2025-10-19 07:54:27 -04:00 committed by GitHub
parent ba077d8ff0
commit 59ff7b2f89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 55 additions and 14 deletions

View file

@ -237,6 +237,7 @@ class CKeybindManager {
static SDispatchResult global(std::string);
static SDispatchResult event(std::string);
static SDispatchResult setProp(std::string);
static SDispatchResult forceIdle(std::string);
friend class CCompositor;
friend class CInputManager;