Repository navigation
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryFocused windows on
No actionable issues were found. This review checked code paths and companion repositories; it did not repeat the reported desktop tests.
|
4e55828 to
8ac2014
Compare
A minimized window waits on special:minimized, which only the dock was meant to bring windows back from. Anything else that focuses one, such as a link opening in a minimized browser, had Hyprland show the whole store over the screen: the window stayed above everything, could not be minimized again, and a window opening meanwhile landed in the store with no floating mode or titlebar. A minimized window that gets focus now comes back to the workspace in front the way the dock brings it, and the store is closed.
8ac2014 to
841fe72
Compare
|
Reviewed at 0cb5249 and reproduced on a disposable Omarchy worker (Hyprland 0.57.0), with nothing pushed. The bug is real, and this fixes it. On a floating workspace I minimized a terminal with Tests, on the worker: Second opinion: Codex Medium and muse-wonder (high) reviewed the diff. Neither found a defect to fix on the branch. They raised a few points worth knowing:
Both reviewers read this session's notes as well as the code, so their agreement is not guaranteed to be independent. I checked the two concerns they raised that live testing could settle: minimizing does not bounce the window straight back, and the store is not toggled back open after Hyprland has already closed it. Related: #14283 stops browsers from taking focus on activation, which would make this path less common for browsers without conflicting with it. #16548 adds an Alt + Tab switcher that can reach minimized windows. This is waiting on the maintainer: the fix is verified, and the timer question above is theirs to weigh. |
|
Rechecked On a fresh disposable Omarchy worker running Hyprland 0.57.2, I minimized two floating terminals with On the worker, No second code opinion ran for this revision: the configured Opus 5.5 High reviewer failed at its weekly limit, and |
|
Rechecked On that exact head, GPT-6 in Codex (reasoning effort not exposed to this session) reviewed the diff and integration paths. Opus 5.5 High and muse-wonder via pi, thinking high reviewed this exact head and the evidence; neither found an actionable code defect. Their agreement is not guaranteed independent because the review brief included my observations. The timer concern from the earlier review remains hypothetical on the tested stack, and returning the window to the workspace in front matches the stated behavior. This verifies the explicit-focus case in #17890. Its original Nautilus dock failure and the separate Apps-grid trigger on Hyprland 0.56.x were not verified here. Both reviewers cautioned that the existing |
|
Rechecked On a fresh disposable Omarchy worker running Hyprland 0.57.2, I minimized two floating foot windows with the shipped helper and targeted one through The worker passed GPT-6 in Codex (reasoning effort not exposed to this session) checked the diff and integration paths. Opus 5.5 High and muse-wonder via pi, thinking high reviewed this head and evidence; neither found an actionable code defect. Their agreement is not guaranteed independent because the brief included my observations. Nothing was pushed, and the worker has been destroyed. This is left for the maintainer's decision. The verification covers explicit focus on a single-monitor, numbered workspace on 0.57.2. Actual browser activation, two monitors, named workspaces, the original Nautilus failure and the Apps-grid trigger on 0.56.x were not verified here; #17890 remains open. |
|
On a disposable Hyprland 0.57.2 worker, I tested The fullscreen change also changes what happens when a maximized window returns to a workspace that already has one. Both windows reported maximized on this head. With the fullscreen change reverted, the returning window was maximized and the other returned to its normal size. This PR's focus fix is distinct from the rendering workaround in #20204, which clears fullscreen before the move. The maintainer needs to decide where the workaround belongs. The Tests workflow also awaits maintainer approval. GPT-6 in Codex ran the worker checks. Opus 5.5 High identified the restore case for follow-up. Muse-wonder via pi with high thinking reviewed the diff and agreed that the fullscreen implementations overlap. The two reviews used a shared brief. |
|
Hit this exact behavior on floating workspaces when clicking desktop notifications for minimized apps: focusing the app opens Two notes that may be useful for maintainer review:
|
|
I reproduced the notification click on an Omarchy worker with Hyprland 0.57.2. On current With this PR applied to current |
…hey wait in the store" This reverts commit c86527b.
|
Reverted |
|
Recommend: Hold — the maintainer needs to approve the Tests workflow. On a Hyprland 0.57.2 ISO worker, clicking a minimized terminal's notification exposed both minimized windows on quattro and with the focus handler disabled. This head restored only the sender and hid the store. When a maximized terminal was restored over another, only the restored terminal remained maximized. The CLI, floating-workspace, dock, and notification suites passed. GPT-6 in Codex (effort not exposed to this session) reviewed the revision and ran the worker checks. Opus 5.5 High agreed and found no defects (independence not guaranteed). |
















Clicking a link while the browser was minimized to the dock showed the whole
special:minimizedworkspace over the screen instead of bringing the browser back. The browser asks to be brought forward (xdg-activation), and withfocus_on_activateHyprland focuses the window where it is, which for a minimized window means opening the special workspace it waits on. Anything else that focuses a minimized window does the same.From there it gets worse. The store sits above every workspace, so the window stays on top of everything. Its minimize button does nothing, since
omarchy-hyprland-window-minimizeonly works from a numbered workspace. And a window that opens while the store is showing (the browser opened the link in a new window) lands onspecial:minimizeditself, where floating mode does not reach, so it is tiled with no titlebar. Bringing that tiled window back onto a workspace with a maximized window left it drawn on top with its input blocked, so its titlebar buttons could not be clicked.default/hypr/minimized-windows.luanow watches focus. A window onspecial:minimizedthat gets focus comes back to the workspace in front the way the dock brings it: moved without animating in, focused, and raised. The store is closed if other minimized windows would keep it open. Hyprland focuses a window in the store whenever it shows it, so the store never stays on screen and nothing opens into it.That happens once Hyprland has finished showing the store. It reports focus while it is still showing it, first for the window last focused there and then for the one asked for. Moving a window or closing the store from inside that left Hyprland to finish showing a store it no longer counted as shown: drawn over the screen while
hyprctl monitorsreported no special workspace, with nothing able to close it, and the other window brought back too. So the window that holds focus once Hyprland is done is the one that comes back.Testing:
test/shell.d/hyprland-floating-workspaces-test.sh, which fails without the module../test/all:agent-account-copy,battery-status,platform-setupandruntime-smokefail on this machine, and fail the same way onquattrowithout this change.Part of #17890: this fixes the explicit-focus case. The original Nautilus dock failure and the Apps grid trigger on Hyprland 0.56.x are not verified.