Repository navigation
Conversation
…spaces Hyprland draws a maximized window under every floating window it lets over it, whatever their order, but hands a click to the highest in that order. Once the maximized window was raised, by a click on it or an app asking for focus, a window still drawn over it passed every click, its titlebar buttons included, through to the maximized window. Before Hyprland picks the window under a click, the windows drawn over a maximized one are now put back above it, so a click goes to what is on screen. A true fullscreen window keeps the screen to itself and is left alone.
…ating workspaces A click on a maximized window, the dock or Alt + Tab now brings it in front of the windows the mode floated over it, as a click does on Windows. A dialog or a portal's file picker floating on its own account stays over it, since its app may wait on it. A window its app asked focus for, as an app does right after opening a link, leaves the windows over it in view. The dock also calls o.bring_forward, since focusing the window that has focus already is no event.
[Medium impact] The PR appears safe to merge; no new actionable issue was established. SummaryKeeps existing maximized windows maximized when another app opens on a floating workspace.
|
|
I reproduced this on my installed Omarchy floating-workspace configuration with Hyprland 0.56.2 (efb50993780079460b0cbed1363e2166a2de1d9f):
Locally disabling only My working local workaround replaces maximize with resize/move to fill the monitor's usable area, saving the previous geometry for restore. It applies only on numbered workspaces using Omarchy's floating mode, through the titlebar maximize button, double-click, and Super+Alt+F. Tiling and scrolling workspaces retain native maximize. Monitor scale, reserved bar/dock space, borders, and the Omarchy titlebar are accounted for. This behaves as expected on my desktop: opening another window preserves the larger window's size, and clicking either window brings it in front. A temporary-window check verified exact size/position restore, with no Hyprland configuration errors. Sharing this as reproduction evidence and a working local alternative. I have not tested this PR's branch or its dependencies, so this is not a verification of the proposed fix. |
…orward # Conflicts: # test/shell.d/hyprland-workspace-layout-test.sh
An app floating by a rule of its own, such as Steam, was taken for a dialog and put back over the maximized window on every focus.
A window the mode floated is a window of its own, not a dialog, even when it shares the maximized window's process.
Folio shows the file pickers of other apps from a process of its own, as the portal does, so a click on the maximized app sent it behind.
Focus left with a maximized window when another closes, is minimized, or its workspace is switched to is nobody bringing it forward, yet it sent every window over it behind. Hyprland gives the reason with the focus.
Hyprland marks a window urgent whenever it grants it focus on request, which is also how the browser comes forward when a link is opened from a chat. Only a window that has the focus, or had it moments ago, is taking it back; any other was sent for, and comes forward.
…orward # Conflicts: # shell/plugins/dock/Dock.qml
|
Classification is unsettled on Codex (GPT-6; reasoning effort not exposed to this session) read the diff, discussion, linked #17049 and base-branch rules. |
|
Classification remains unsettled on Codex (GPT-6; reasoning effort not exposed to this session) read the current diff, discussion, inline review, linked #17049 and base-branch rules and handler. |
Fixes #17049.
Stacked on #17361 (itself stacked on #17360), so their commits show here too; only the last two commits are new.
On a floating workspace, opening any other app (from the dock, the launcher, a terminal) un-maximized the maximized window already there: it shrank back to its floating size and the new window opened centered over it. That came from
unmaximize_othersindefault/hypr/workspace-modes.lua, which the mode'swindow.openhandler ran for every new window since the dock landed (#15263).Now the maximized window stays maximized and the new window floats over it at its own size, as on Windows. The user brings the maximized window forward again with a click, the dock or Alt + Tab, which #17361 already handles.
unmaximize_othersis gone. Nothing else in the mode un-maximizes on open. True fullscreen (Super + F) was never touched and still isn't.CWindow::mapWindowmarks every new floating windowallowedOverFullscreenand raises it, andmisc:on_focus_under_fullscreen(Omarchy sets 1) only applies to a window that is still tiled at that point. The mode's open rule floats windows from their first frame, so the new window is drawn over the maximized one, takes focus, and is top of the order clicks follow. Focusing a floating window over a maximized one later only brings it over (CFocusState), it never changes the maximize.o.floating_appsas two separate exclusions, so the open rule passed over every window of that class. Those apps' main windows opened tiled, and with a maximized window there Hyprland'son_focus_under_fullscreen = 1gave them the maximize, which is the same symptom by another path. Lua'swindow.openfires atopenLate, after that takeover, so the mode couldn't undo it.o.windownow records only the title of such a rule, so the main window floats from its first frame and the file chooser still floats on its own account.drawn_over/keep_over/bring_forward. The new window is claimed by the mode, so a click on the maximized window sends it behind until it is brought forward.Related work:
unmaximize_othersremoved, neither case un-maximizes any more, so Keep a maximized window maximized when its own app opens a menu #16544 isn't needed once this lands; the two edit the same function and conflict.omarchy-maximizedtag and restores it when the window is brought forward. It still covers Hyprland's own one-maximized-window-per-workspace handoff. Its note that a new window still un-maximizes the maximized one no longer holds with this change.Testing:
test/shell.d/hyprland-floating-workspaces-test.sh: the case that asserted the old behaviour now checks that a window the open rule floats leaves the maximized one maximized and opens floating at its own size. It fails on Bring a maximized window to the front when the user focuses it on floating workspaces #17361's branch and passes here.helpers.luachange.test/shell.d/hyprland-*-test.shfiles pass.uwsm-app -- gtk-launch org.gnome.Nautilus.desktop) leaves Steam maximized, and Files opens floating at its own size, focused, top of the stacking order andallowed_over_fullscreen. Before thehelpers.luachange, the same launch opened Files tiled and maximized and Steam lost its maximize.