Repository navigation
Reveal a Cancel pill on mouse movement in the Polkit prompt - #20559
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no actionable new issue remains. SummaryAdds a mouse-revealed Cancel pill to password, fingerprint, and drive-unlock prompts.
Verification was limited to source checks. Native UI capture was blocked because Quickshell, Hyprland, and a desktop session were unavailable. Reviews (3) · Last reviewed commit: "Reveal a Cancel pill on mouse movement i..." · Reviewed by Greptile |
dhh
force-pushed
the
feat-polkit-hover-cancel
branch
from
November 28, 2026 11:48
98c9718 to
b524c6d
Compare
This comment has been minimized.
This comment has been minimized.
dhh
force-pushed
the
feat-polkit-hover-cancel
branch
from
November 28, 2026 11:53
b524c6d to
0e26fce
Compare
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 28, 2026
…0559) Co-authored-by: Mark Groves <mark-groves@users.noreply.github.com>
lbssousa
added a commit
to lbssousa/polkit-omarchy
that referenced
this pull request
Dec 1, 2026
upstream/ now holds shell/plugins/polkit/ from v4.6.0-rc2 (was main at a30167e, the same files as 4.6.0-rc1), merged into plugin/ with git merge-file and the old snapshot as the base, without conflicts: - omacom/omarchy#20559: a Cancel pill under the card, revealed by moving the pointer or clicking the scrim; mouse selection and an I-beam in the password field. - omacom/omarchy#20972: the fingerprint setup policy's message translated through the shell catalog, and pkexec prompts cut inside the executable's name matched against an expected label. #20972's two new cases are ported to tests/PolkitModel.test.js. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
Adds a mouse way to cancel the Polkit / drive-unlock overlay without adding visual chrome for keyboard or fingerprint users, and fixes text selection in the password input:
shell/plugins/polkit/PolkitAgent.qml): adds a floatingCancelpill 10px below the card (mirroring the justification pill above it) that stays hidden untilPointerMoveGatesees deliberate mouse motion (> 8px). Works identically in password mode, the 70×70 fingerprint square, and drive unlock; hides again when typing or submitted.MouseAreaoverpasswordInputthat swallowed left-button presses/drags, enablesselectByMouse: true, and adds a passiveHoverHandlerwithQt.IBeamCursor.Verification
polkit-test.sh,motion-test.sh, andqmllint.Screenshots