Repository navigation
feat(window): choose window button defaults by desktop session - #2448
Conversation
Show unsaved minimize, maximize and close controls on stacking or unknown desktops. Hide them on recognized tiling sessions while preserving every explicitly saved choice. Keep the native GTK actions and existing custom header unchanged. Cover desktop detection, missing and saved preferences, live settings and restarts, and refresh the affected visual baselines. Refs #2419
Local validation and scopeThis changes only unsaved window-button defaults. Existing native GTK actions, header bindings, preference persistence and other settings are unchanged. Coverage includes desktop token matching, startup/missing and partial settings, saved true/false choices, existing/later windows, tab-chrome refreshes, live Settings changes, restarts, all three browser presentations and their existing menu/dialog baselines.
Final GUI selection, without baseline-update mode: ./scripts/qa.sh window-buttons-follow-desktop-defaults columns-view-baseline columns-overflow-baseline list-view-baseline icons-view-baseline icons-airy-view-baseline icons-hover-baseline selection-and-focus-baseline context-menu-baseline delete-confirmation-baseline10 runs passed. The nine affected baselines were deliberately regenerated beforehand and every image reviewed. The new scenario also failed at its initial visibility check under a temporary incorrect expectation, which was restored before the final pass. Full local Rust and QA suites were intentionally omitted based on this bounded consumer mapping; CI remains the authoritative full suite. No application strings or catalogs changed. Owner-approved exception: the local CodeScene command could not run because credentials were unavailable; the owner explicitly authorized skipping that check. Code health is unverified, not reported as passing. At the owner's request, five reviewed captures were retained outside the source tree. They simulate desktop names in the isolated QA container, not real compositor sessions. Each has a captioned section in the PR description awaiting owner upload; no attachments have been uploaded by the agent. |
The Hungarian corrections in #2304 edited install.sh directly, leaving the shared source catalog stale and failing the installer consistency check. Copy those approved translations into the catalog without changing the generated installer or reverting its wording. Include Hungarian in the existing installer locale/interpolation matrix. Keep the CI repair scoped to catalog data and its regression coverage.
…cenario The KDE, unknown-desktop and niri restarts repeated defaults that window_buttons_follow_desktop_names already covers. Open Settings on the mixed Hyprland session instead, keeping the startup, live-toggle and saved-choice-over-desktop checks.
The two desktop tests duplicated their isolated GTK setup, dropping loading.rs code health from 9.57 to 8.99.
…for Rune Each is an item under the owning package's Open, as a follow-up after done (A2, A8 and A10 for #2603, A6 for #2533, A18 for #2448, and A19, A20 and A9 for #2108), with a reference issue: #2684, #2685, #2686 and #2687. The A19 successor rows and the E1 Menu-key row say what the Rune runs showed, and H5.md takes the Menu key's line-14 failure as a finding to confirm.
Description
Choose unsaved minimize, maximize and close button defaults from
XDG_CURRENT_DESKTOP: hide them on recognized Hyprland, Sway, i3 and niri sessions; show them elsewhere, including GNOME, KDE and unknown sessions. Match complete colon-separated names case-insensitively and preserve every saved visible/hidden choice.Keep Strata's custom header and native GTK window actions unchanged. Update preference guidance, regression coverage and the existing browser visual baselines.
Owner-approved exception: skip the local CodeScene check because credentials are unavailable.
Visual evidence
Pending owner uploads. These reviewed captures use simulated desktop-session names inside the isolated QA container, not actual KDE/GNOME/tiling compositor sessions. Review captures are not committed; the committed images are maintained executable visual-regression baselines.
1. GNOME — default controls
All three controls appear with no saved overrides, even when GTK requests a close-only layout.
2. KDE — default controls
All three controls appear before opening Settings, with no saved overrides.
3. Tiling session — hidden by default
All three controls are hidden for the mixed desktop value
KDE: hYpRlAnD, even when GTK lists all three buttons.4. Saved visible choices — preserved on niri
All three explicitly enabled controls remain visible after restarting on a recognized tiling session.
5. Saved hidden choices — preserved on GNOME
All three explicitly hidden controls remain hidden after restarting on a stacking session.
How to test
window_show_*settings. Launch withXDG_CURRENT_DESKTOP=GNOMEorKDE, including when GTK has a close-only decoration layout: all three window controls should be visible before opening Settings.XDG_CURRENT_DESKTOP=Hyprland,Sway,i3orniri: all three controls should be hidden. A mixed value such asKDE: hYpRlAnDshould also hide them; an unknown or empty desktop value should show them.Expected result: New users get controls appropriate to the desktop without opening Settings; existing users retain their saved choices. The buttons keep their existing native window actions.
Related issue
Closes #2419