Skip to content

fix(lock): show the lock screen on every display when none is selected - #3666

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:lock-screen-display-fallback
Oct 3, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:lock-screen-display-fallback

Conversation

@Conava

@Conava Conava commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR keeps the lock screen usable when none of the selected lock screen displays is connected.

The lock screen display list is stored by display name. With two or more screens connected and none of them in that list (for example a laptop docked at a different desk), every lock surface is inactive and no password field renders, so the only way out is a TTY. getFilteredScreens only falls back to all screens with showOnLastDisplay and exactly one screen, and the lock screen picker never sets showOnLastDisplay.

  • Lock.qml: when getFilteredScreens("lockScreen") is empty, every screen is active, the same as the default "all" preference

Validation

  • Traced every reader of the lockScreen preference: isActiveScreen in Lock.qml is the only one, and all surfaces already share one Pam and one password buffer, so several active surfaces is the default configuration
  • make lint-qml, prek run on the changed file. Skipped the qml-tests hook, which launches niri and can't run on this Hyprland machine

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

With two or more screens connected and none of them in the lock screen
display list (a laptop docked at a different desk), every surface was
inactive and no password field rendered, so the only way out was a
TTY. getFilteredScreens only falls back to all screens with
showOnLastDisplay and exactly one screen, which the lock screen picker
never sets. Treat an empty result as all screens, the same as the
default "all" preference.
Copilot AI balanced review requested due to automatic review settings October 2, 2026 20:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bbedward
bbedward merged commit 6a32039 into duxlabs-dev:master Oct 3, 2026
2 checks passed
bbedward pushed a commit that referenced this pull request Oct 7, 2026
#3666)

With two or more screens connected and none of them in the lock screen
display list (a laptop docked at a different desk), every surface was
inactive and no password field rendered, so the only way out was a
TTY. getFilteredScreens only falls back to all screens with
showOnLastDisplay and exactly one screen, which the lock screen picker
never sets. Treat an empty result as all screens, the same as the
default "all" preference.

(cherry picked from commit 6a32039)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants