Skip to content

feat(window): choose window button defaults by desktop session - #2448

Merged
l0gicgate merged 7 commits into
mainfrom
feat/2419-window-buttons-default
Nov 16, 2026
Merged

l0gicgate merged 7 commits into
mainfrom
feat/2419-window-buttons-default

Conversation

@JoeJoeflyn

@JoeJoeflyn JoeJoeflyn commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

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.

01-gnome-default

2. KDE — default controls

All three controls appear before opening Settings, with no saved overrides.

02-kde-default

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.

03-hyprland-default

4. Saved visible choices — preserved on niri

All three explicitly enabled controls remain visible after restarting on a recognized tiling session.

04-tiler-saved-show

5. Saved hidden choices — preserved on GNOME

All three explicitly hidden controls remain hidden after restarting on a stacking session.

05-gnome-saved-hide

How to test

  1. Use a disposable config directory with no window_show_* settings. Launch with XDG_CURRENT_DESKTOP=GNOME or KDE, including when GTK has a close-only decoration layout: all three window controls should be visible before opening Settings.
  2. Repeat with a fresh config and XDG_CURRENT_DESKTOP=Hyprland, Sway, i3 or niri: all three controls should be hidden. A mixed value such as KDE: hYpRlAnD should also hide them; an unknown or empty desktop value should show them.
  3. Change the three switches in Settings → General → Window buttons. Restart with the opposite desktop type and confirm each saved choice remains unchanged. If only some settings exist, only the missing ones should use desktop defaults.

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

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
@JoeJoeflyn

Copy link
Copy Markdown
Collaborator Author

Local validation and scope

This 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.

  • ./scripts/test-headless.py window_buttons — 5 tests passed (4 application tests and 1 desktop-crate test), using the installed Rust 1.99.1 directly and canonical private-display/bus isolation.
  • ./scripts/test-headless.py window_buttons_default_ — final affected rerun after a formatting-only correction: 2 tests passed. Both new regressions had failed on the exact incorrect defaults before implementation.
  • ./scripts/quality.sh fmt and ./scripts/quality.sh clippy — passed in the verified pinned container.
  • git diff --check and staged diff check — passed; final worktree clean.

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-baseline

10 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.

JoeJoeflyn and others added 5 commits November 14, 2026 19:59
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.
@l0gicgate
l0gicgate merged commit 9e621cb into main Nov 16, 2026
10 checks passed
wmfeht added a commit that referenced this pull request Nov 21, 2026
…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.
@l0gicgate
l0gicgate deleted the feat/2419-window-buttons-default branch November 24, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show window buttons by default on stacking desktops (KDE, GNOME)

2 participants