Skip to content

Integrate overlapping display, dock, lock, and picker fixes - #21230

Closed
chessing234 wants to merge 14 commits into
omacom:quattrofrom
chessing234:integrate/shell-surfaces
Closed

chessing234 wants to merge 14 commits into
omacom:quattrofrom
chessing234:integrate/shell-surfaces

Conversation

@chessing234

@chessing234 chessing234 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Four pairs of open PRs edit the same shell surface. Each pair conflicts in one file, and the two Display panel fixes do the same job in different places.

Test plan

  • test/shell.d/monitor-state-test.sh
  • test/shell.d/monitor-test.sh, including a failed read keeping the last displays
  • test/shell.d/image-picker-test.sh, including extra-theme deletion
  • test/shell.d/lock-state-test.sh, including one reblank and no second blank without a wake
  • the node checks in test/shell.d/dock-test.sh. The shell half then calls GNU paste, which macOS paste rejects.

Screenshots

The dock, lock buttons, display warning, and picker need a running Omarchy session. This host does not have one.

photuris and others added 13 commits December 2, 2026 07:44
Every login screen lets whoever is at the machine put it to sleep or turn it
off without signing in, and the hardware power button grants that anyway.
Three buttons sit bottom-right of the lock, styled as the password field.
A first click arms one and asks; a second click on it acts, and clicking or
typing anywhere else disarms it, so a stray click does nothing. The service
holds the armed button, so every monitor's view arms and disarms together,
and a click on a dark display only lights it.

Suspend shows only where the menu offers it, by its own two guards. The
actions go straight to logind, like the power key: the menu's omarchy-system
closes windows first, which a locked session's absent owner would not want
on a reboot logind then refuses. The field reports the action, and its
failure, since nothing else can show through the lock.
The standalone theme switcher opens the picker through the generic
image-selector path, so themeMode stays false and Delete was silently
ignored. Treat a selection from the theme preview directory as a theme
for deletion, refresh the extra/stock theme lists on generic opens so
they are known on a first open, and reload rows after a deletion in
that picker.
…fresh

Replace the substring check on currentPath() with an explicit
themeDeleteMode flag set from ImagePickerModel.isThemePreviewSource()
against the session's theme-selector previews directory:

- Only refresh extra/stock theme lists when the generic selector opens
  theme previews, not on icon or background pickers.
- Guard applySelected() during deletion and post-delete refresh in
  themeDeleteMode so Enter cannot return a just-deleted theme.
- Reload rows in updateThemeRows() when themeDeleteMode is active even
  if currentPath() is empty under a filter or themeRows already matched
  the post-delete list while imageRows still held the removed theme, and
  clear awaitingDeleteRefresh once no queued refresh remains.
- Add unit tests in test/shell.d/image-picker-test.sh for the generic
  theme picker delete, apply guard, row refresh, and open flows.
A failed monitor read was handing updateDisplays the raw JSON string, so the panel replaced the display list with that string. Parse it back into the display records first. Lock wake still counts blanks and clears an armed power action, and the extracted wake test can run without the fingerprint timer object.
Reading the timer id throws in the extracted test, where that object is not defined. Check that it exists before asking whether it is running. On the lock screen the timer is always there.
@chessing234

Copy link
Copy Markdown
Contributor Author

@omarchybot @dhh combined the overlapping display, dock, lock, and picker prs so each pair is only reviewed once.

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[High impact] The PR appears safe to merge; both previous findings are fixed and no new blocking issues were found.

Summary

This PR combines display-state recovery, smaller dock surfaces, lock-screen power buttons, and theme-picker fixes.

  • The Display panel keeps its last good state when a read fails.
  • The lock screen offers confirmed Suspend, Reboot, and Shutdown actions.
  • Dock menus open in a separate popup while the dock stays compact.
  • The generic theme picker can delete extra themes without applying one.
  • The image picker scales its carousel to fit short and narrow screens.
  • A locked screen does not blank again until it has woken.
  • Dock pin edits leave fallback bar settings untouched.

Reviews (3) · Last reviewed commit: "Keep lock wake activity and power failur..." · Reviewed by Greptile

Comment thread shell/plugins/lock/LockView.qml Resolved
Comment thread shell/plugins/lock/Service.qml Resolved
@chessing234

Copy link
Copy Markdown
Contributor Author

ready for a look @dhh @ryanrhughes

@emirb

emirb commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for the time you put into this. Some of the fixes you added on top catch real bugs in the original PRs. I'm closing it anyway, along with the other Integrate PRs.

Each bundle puts several people's work in one branch. We can't review it one change at a time or revert a single piece. Merging it would also leave every original PR open. That's why our PR template asks for one problem per PR.

None of the bundles ran on an Omarchy install either.

Please post each fix on the PR it belongs to, so its author can pick it up. If two PRs conflict, a comment on the later one helps us most. A small fix of your own, tested on a real install, is always welcome. Smaller and proven gets merged. Thanks!

@emirb emirb closed this Dec 2, 2026
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.

8 participants