Rearm idle monitor after timeout changes - #9570
Open
rookepoole wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-arm Quickshell's
IdleMonitorwhen a liveshell.jsonedit changes the effective first idle timeout.Changing
idle.screensaveroridle.lockupdates the QML timeout immediately, but affected Quickshell sessions can leave the underlying Wayland idle notification silent. The shell then reports the new values while screensaver, lock, and display-idle events never fire until a restart.The idle service now pulses the monitor off for 150 ms and declaratively re-enables it with the new timeout. This spans the event-loop delay validated in the issue reproduction, remains gated by Stay Awake, coalesces rapid edits by restarting the one-shot timer, and exposes the re-arm state in idle diagnostics.
Closes #9496
Test plan
bash test/shell.d/idle-test.sh/usr/lib/qt6/bin/qmllint -I /usr/lib/qt6/qml -I shell shell/plugins/services/idle/Service.qml(only existingQProcess::ExitStatusimport warnings)./test/shell(changed test passes; suite retains five unrelated baseline failures: three require anomarchy-pkgscheckout, plus the existing launch-about and network-QR assertions)