Skip to content

Keep floating layout for workspaces with minimized windows - #15442

Merged
dhh merged 3 commits into
quattrofrom
omabot/pr-15432
Oct 14, 2026
Merged

dhh merged 3 commits into
quattrofrom
omabot/pr-15432

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

Minimizing the last window on a floating workspace hid the dock, which is the only way to bring that window back. Minimize moves the window to special:minimized, so the workspace it left reports zero windows, and omarchy-hyprland-workspace-layout-default takes a workspace with zero windows for an empty one: changing the default deleted its saved floating layout and the workspace switched to the new default, where the dock does not show.

Minimize now tags each window with the workspace it left (omarchy-minimized-from-<id>), replacing any earlier origin when the window is minimized again from somewhere else. Changing the default counts a workspace as busy while a window tagged from it is still on special:minimized, so its floating layout stays. A tag follows the window and dies with it, which is also how floating mode remembers a window; a workspace that is actually empty still takes the new default. If the client list cannot be read, a layout change refuses rather than guessing that nothing is minimized, the same as for an unreadable workspace list. The navigation manual says a minimized window still counts as a window on the workspace it left.

The workspace and client lists reach jq through stdin rather than as arguments: Linux caps a single argument at 128 KiB, which a client list reaches at around 150 windows, and past that every default layout change would refuse.

Windows minimized before this change carry no tag, so nothing records which workspace they left and they are not recovered.

The original fix is @mark-groves's, from #15432, whose commits this carries unchanged; the stdin change is on top. The second opinion was Codex at medium effort.

mark-groves and others added 3 commits October 14, 2026 16:50
A default layout change drops the floating mode of a workspace whose
windows are on special:minimized, which hides the dock that brings
them back.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Minimizing tags the workspace a window left. A default layout change
counts that workspace as busy, so its floating layout and the dock stay.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
A single argument is capped at 128 KiB, which a client list reaches at around 150 windows, and past that every default layout change refused with "Argument list too long".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Codex Medium <noreply@openai.com>
@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Oct 14, 2026
@dhh
dhh merged commit 256e05b into quattro Oct 14, 2026
@dhh
dhh deleted the omabot/pr-15432 branch October 14, 2026 08:55
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants