From 9586f4cd3caa8f7233486f25cb20c66f8b569389 Mon Sep 17 00:00:00 2001 From: Felitendo Date: Sat, 26 Sep 2026 19:32:37 +0200 Subject: [PATCH] fix: notice somebody coming back on hyprland --- src/agent/inputwatcher.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/agent/inputwatcher.cpp b/src/agent/inputwatcher.cpp index 9b74682..2104565 100644 --- a/src/agent/inputwatcher.cpp +++ b/src/agent/inputwatcher.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include "qwayland-ext-idle-notify-v1.h" @@ -190,6 +191,9 @@ void InputWatcher::watch(int calmMs) } return; } + // Hyprland never says resumed for a timeout of 0. A tenth of a second of + // calm first changes nothing anywhere. + calmMs = std::max(calmMs, 100); // Version 1 has only the notification that inhibitors hold back. ::ext_idle_notification_v1 *object = m_notifier->QWaylandClientExtension::version() >= 2 ? m_notifier->get_input_idle_notification(uint32_t(calmMs), wayland->seat())