Repository navigation
Backport to v4-5-0: exit the screensaver when the mouse moves - #17511
Merged
Merged
Conversation
Mouse input never reaches the screensaver's terminal, so on 4.5 only a key press or a focus change dismissed it. Watch the pointer instead, ignoring the moves the launcher makes while it opens a screensaver on each monitor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; both previous findings are addressed. SummaryAdds mouse-movement dismissal to the terminal screensaver on
Review was based on source inspection. Tests and a live multi-monitor desktop were not exercised.
|
A fixed grace could end while a slow terminal was still opening, and the launcher's later focus moves then closed every screensaver. The launcher now marks the launch, and the screensaver starts watching the pointer once the marker is gone. The test stubs pkill and stops only its own processes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryanrhughes
added a commit
that referenced
this pull request
Nov 16, 2026
…#19068) * Replace the terminal screensaver with the native Wayland one (#16800) Cherry-pick of #16800 to 4.5.1. The screensaver becomes the omarchy-screensaver package: one overlay per display, closed by any key, click, scroll or mouse movement. The terminal launcher, its configs, window rules and tests go, and a migration installs the package. Conflicts were the 4.5-only fixes to the terminal screensaver (#17511 and a test fix), resolved by taking quattro's side: bin/omarchy-launch-screensaver is quattro's, and bin/omarchy-screensaver, screensaver-workspace-test.sh and #17511's screensaver-mouse-test.sh are removed. (cherry picked from commit ce0ef48) * Carry the screensaver manual's translations from quattro The English chapter changed with the native screensaver. Each language's paragraph about omarchy toggle screensaver now matches quattro's translation, and the manifest marks those chapters current against the new English. --------- Co-authored-by: Omarchybot <omabot@omarchy.org>
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.
Fixes #17421.
On 4.5 the screensaver runs in a terminal, and mouse input never reaches it. Only a key press or a focus change dismisses it. The idle service deliberately leaves the screensaver up during activity and relies on the script to exit on input. So moving the mouse left the screensaver playing with the cursor hidden.
omarchy-screensavernow also checkshyprctl cursorposon each pass of its existing once-a-second loop and exits when the pointer moves.The launcher focuses each monitor in turn to open its screensaver, and Hyprland moves the pointer when it does. So the launcher now creates
$XDG_RUNTIME_DIR/omarchy-screensaver-launchingwhile it opens windows and removes it once focus is back on the original monitor. While the marker exists, the screensaver ignores pointer moves. However long the terminals take to open, the launcher's own moves never count as the user coming back.quattrodoesn't need this: there the native screensaver closes on any activity once the launch grace ends (5c3303b). This PR targetsv4-5-0only.Testing
test/shell.d/screensaver-mouse-test.shruns the script in a pseudo-terminal with mockedhyprctlandttfx. It stubspkill, so it never touches the developer's own screensaver, and checks two things. A pointer move while the launch marker exists is ignored. A later move exits the screensaver and restores the cursor.screensaver-workspace-test.sh(the launcher) still passes.bash -npasses, andhyprctl cursorposreturnsx, yon Hyprland 0.56.🤖 Generated with Claude Code