Repository navigation
Leave self-floating windows out of the floating workspace open rule - #18749
LordMelkor wants to merge 3 commits into
Conversation
The open rule sized and centered every non-modal window on a floating workspace, including windows Hyprland already floats on its own: X11 popup and dropdown menus, tooltips, utility windows, transient and fixed-size windows. Menus then opened at app-window size, far from where they were clicked. Hyprland decides that floating before rules apply, so matching float = false leaves those windows at their own size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defect was confirmed. SummaryLeaves windows that already float out of the floating-workspace size and position rule.
No actionable new issue was confirmed. Automated tests and live UI checks were not run during this review.
|
With float = false in its match, the open rule stops matching a window as soon as its own float = true effect floats it, and Hyprland drops the rule's omarchy-mode-opened tag before window.open fires. claim_opened then found no tag, the window went unclaimed, and it stayed floating when the workspace went back to tiling. window.open_early still carries the tag, so the claim moves there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and run on an Omarchy ISO worker (Hyprland 0.57.2). The menu fix works, but on its own it stopped the mode from claiming ordinary windows. I pushed a fix for that to your branch as 77c4e8c. What was run. A raw Xlib probe mapped three managed windows on a workspace switched to floating with
The two captures show where each window opened. That each window tiles or stays floating when the mode ends comes from Tests on the worker at 77c4e8c: Second opinion: Codex Medium and muse-wonder via pi (thinking high) reviewed the change with the fix on top and found no defects. They agree with the above, though their independence is not guaranteed. muse-wonder pointed out that no test asserts the Related: this fixes the menu half of #16736; the unmaximize half is #17491, so the PR does not close it. A Waiting on: you, for one edit to the description. Drop the sentence about rules re-checked on tag changes, and say that the claim moved to |
|
The description now correctly explains why the claim runs on My classification is still |
|
Classification is now settled as Verification still rests on the November 17 ISO-worker run: popup and utility probes kept their geometry, and an ordinary window was claimed and tiled again when floating mode ended. CLI checks passed, workspace-layout tests passed 14/14, and floating-workspace tests passed 30/31; the missing-Node failure also occurred on the base. No runtime tests were rerun in this pass, and the actual toolbar from #17540 remains unverified. The |
|
The new link to #18832 is supported by its LibreOffice worker reproduction at unchanged head GPT-6 in Codex (reasoning effort not exposed) reviewed this additional evidence; no new code changes or runtime tests were made in this pass. A fresh second opinion could not run: Opus 5.5 High hit its weekly limit, confirmed by |
Keep the early workspace claim when resolving the conflict with the current workspace open handler. Use the persistent claim for Steam games because the temporary rule tag has already dropped by window.open. Co-Authored-By: GPT-6 in Codex <noreply@openai.com>
|
Recommend: Hold — the Tests workflow needs maintainer approval and the readiness check fell short. Tests workflow
|




What changes
On floating workspaces,
omarchy-floating-open-Nforces 1100×760 centered geometry onto windows Hyprland already floats before rules run (X11 popup/dropdown menus, tooltips, utility/splash/transient/fixed-size windows, parented Wayland toplevels), misplacing context menus.float = falsetosync_open_rules(default/hypr/workspace-modes.lua) so self-floating windows keep their app-requested size and position, matching modal dialogs.window.open_earlyinstead ofwindow.openso the rule's temporary tag is captured before the rule stops matching.unmaximize_others); may also cover [Floating workspace] Non-modal XWayland utility windows (e.g. IME toolbars) get app-window size and position from the open-rule #17540 if that toolbar self-floats.Note: No new shell test was added for this one-key declarative match rule; live after-state was checked with a standalone Xlib probe rather than re-testing every affected app.
Verification
bash test/shell.d/hyprland-floating-workspaces-test.shpasses (updated the rule-lifecycle test forwindow.open_early).x, y, w, h):Screenshots
No screenshot — the geometry table above shows menus opening at their requested coordinates and size.
Fixes #18832
Fixes #21427