Skip to content

Reveal a Cancel pill on mouse movement in the Polkit prompt - #20559

Merged
dhh merged 1 commit into
quattrofrom
feat-polkit-hover-cancel
Nov 28, 2026
Merged

dhh merged 1 commit into
quattrofrom
feat-polkit-hover-cancel

Conversation

@dhh

@dhh dhh commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Hover-revealed Cancel pill (shell/plugins/polkit/PolkitAgent.qml): adds a floating Cancel pill 10px below the card (mirroring the justification pill above it) that stays hidden until PointerMoveGate sees deliberate mouse motion (> 8px). Works identically in password mode, the 70×70 fingerprint square, and drive unlock; hides again when typing or submitted.
  • Password field caret & selection: removes the redundant overlay MouseArea over passwordInput that swallowed left-button presses/drags, enables selectByMouse: true, and adds a passive HoverHandler with Qt.IBeamCursor.

Verification

  • Passed polkit-test.sh, motion-test.sh, and qmllint.

Screenshots

Default (no pointer motion) After deliberate pointer motion
Polkit prompt default without Cancel pill Polkit prompt with hover-revealed Cancel pill

@greptile-apps

greptile-apps Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable new issue remains.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issue remains.

Summary

Adds a mouse-revealed Cancel pill to password, fingerprint, and drive-unlock prompts.

  • Mouse movement reveals a Cancel pill below the Polkit prompt.
  • Password entry now supports mouse selection and shows an I-beam cursor.

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

Comment thread shell/plugins/polkit/PolkitAgent.qml Resolved
@dhh
dhh force-pushed the feat-polkit-hover-cancel branch from 98c9718 to b524c6d Compare November 28, 2026 11:48
@omarchybot omarchybot added the enhancement New feature or request label Nov 28, 2026
Comment thread shell/plugins/polkit/PolkitAgent.qml Resolved
@greptile-apps

This comment has been minimized.

@dhh
dhh force-pushed the feat-polkit-hover-cancel branch from b524c6d to 0e26fce Compare November 28, 2026 11:53
@dhh
dhh merged commit 5735046 into quattro Nov 28, 2026
6 checks passed
@dhh
dhh deleted the feat-polkit-hover-cancel branch November 28, 2026 12:46
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants