Repository navigation
Keep a maximized window maximized when another opens on a floating workspace - #21491
naseebnaushad wants to merge 1 commit into
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryKeeps a maximized window maximized when another window opens on its floating workspace.
Acknowledgment: Reviews (1) · Last reviewed commit: "Keep a maximized window maximized when a..." · Reviewed by Greptile |
|
Recommend: Don't merge — prefer #17491 once its conflicts with On a Hyprland 0.57.2 ISO worker, a second terminal shrank the maximized window on Codex High and Opus 5.5 High checked the remaining case. Muse Wonder (Pi, High) reviewed the competing diffs. |


What changes
On a floating workspace, opening any window un-maximizes the maximized window already there: it drops back to its floating size and the new window opens over it in the middle of the screen. A maximize the user asked for is undone by opening an app.
The cause is
unmaximize_othersindefault/hypr/workspace-modes.lua, which the mode'swindow.openhandler runs for every new window. The mode never maximizes anything itself, so this can only ever undo a maximize the user chose. Making room for the new window is already done by the open rule, which places it at its own size. And XWayland menus, tooltips and notification toasts arrive as windows too, so the same call also un-maximizes an app when it opens its own menu or tooltip.This removes
unmaximize_othersand its call, nothing else. The new window opens over the maximized one, as on other desktops, and the maximized window comes forward again with a click, the dock or Alt + Tab. True fullscreen (Super + F) was never touched by this function and still isn't.Fixes #17049. Also fixes #16736 and the trigger #21426 was closed as a duplicate of (an app's own XWayland menu, tooltip or toast un-maximizing it).
#17491 removes the same function as part of a larger change stacked on #17361 and #17360, and currently conflicts with
quattro. This is only the removal, so it can land on its own; if you'd rather take #17491, close this one.Verification
bash test/shell.d/hyprland-floating-workspaces-test.shonquattro(28d0d07) with Lua 5.5.1: 45 cases pass. The case that asserted the old behaviour now asserts that a maximized window on a floating workspace stays maximized when another window opens there, and still that one on a tiled workspace does. With the new test and the oldworkspace-modes.lua, it fails:a maximized window was unmaximized when another opened on its floating workspace.git grep unmaximize_othersfinds nothing else.Screenshots
No new UI: the maximized window simply keeps its size when another window opens over it on a floating workspace.