Repository navigation
Reclaim workspaces left without a monitor - #20185
Merged
Merged
Conversation
A workspace can survive with no monitor after a display is disabled. Reclaim it before focusing or moving a window there; only settle a previous monitor when there was one. Co-Authored-By: Codex GPT-6 (reasoning effort not exposed) <noreply@openai.com>
Make an unreclaimed workspace fail with the compositor's focus error instead of a nil dereference, so the recovery regression explains the failed operation. Co-Authored-By: Codex GPT-6 (reasoning effort not exposed) <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (1) · Last reviewed commit: "Report monitorless workspace rejection i..." · Reviewed by Greptile |
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 25, 2026
* Reclaim workspaces left without a monitor A workspace can survive with no monitor after a display is disabled. Reclaim it before focusing or moving a window there; only settle a previous monitor when there was one. Co-Authored-By: Codex GPT-6 (reasoning effort not exposed) <noreply@openai.com> * Report monitorless workspace rejection in the workspace model Make an unreclaimed workspace fail with the compositor's focus error instead of a nil dereference, so the recovery regression explains the failed operation. Co-Authored-By: Codex GPT-6 (reasoning effort not exposed) <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> --------- Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com> Co-authored-by: Codex GPT-6 (reasoning effort not exposed) <noreply@openai.com> Co-authored-by: Opus 5.5 High <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.
reclaim()skips an existing workspace when Hyprland has left it without a monitor. The following focus dispatch then fails withWorkspace has no monitor, so Super+N cannot reach its windows. Move that workspace onto the requested monitor before focusing it, and settle the previous monitor only when one exists. Window-to-workspace bindings use the same recovery path. Recovery applies to workspace IDs in the requested monitor's own block; assigning orphans from a disconnected monitor's block remains unchanged.The regression case covers both focusing an occupied monitorless workspace and moving a window into one. On an Omarchy worker running Hyprland 0.57.2, clearing workspace 2's actual monitor reference with a temporary test plugin makes the base dispatch fail; this change restores the workspace and its window, and reverting it restores the failure. This seeds the reported
monitor ?state; disabling a virtual output did not produce it, and the Framework laptop's lid-close sequence on Hyprland 0.56.2 still needs the reporter's confirmation.Fixes #20156.
Screenshots
Controlled worker test with an occupied workspace whose monitor reference was deliberately cleared; these captures demonstrate recovery from that state, not reproduction of the physical display failure.