Skip to content

zgx: Linux title bar no longer reserves traffic-light space without window buttons - #1383

Open
katulevskiy wants to merge 1 commit into
mainfrom
zgx/linux-titlebar-no-controls
Open

katulevskiy wants to merge 1 commit into
mainfrom
zgx/linux-titlebar-no-controls

Conversation

@katulevskiy

@katulevskiy katulevskiy commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

On Linux without window buttons reported (Hyprland and other tiling compositors draw none, or full screen), the title bar placed the sidebar toggle 88 in, where macOS's traffic lights would be, leaving an empty gap at its left.

ds/title_bar.luau toggle_in() now:

  • Linux / Windows, no buttons reported: the row's 10 (as beside buttons at the right).
  • No platform said (headless tests, previews): 88, as before, macOS's layout.
  • lights = true (the gallery, the title bar fixture draw their own lights): never nearer than 88, so the toggle isn't drawn over them.

macOS is unchanged.

Tests

  • tests/full_screen_titlebar.rs off_macos_the_controls_stay_where_they_are: was asserting the bug (88 on Linux with nothing reported); now 10, in and out of full screen. Fails on main (88), passes here.
  • cargo test --bin zeron-zgx -- window_buttons_tests shell_tests hit_tests: 23 passed.
  • the_controls_slide_to_the_lights_place_in_full_screen_and_back fails ("no script runs while they slide": 16 vs 0) identically on unchanged main, so it is not from this change.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…, not 88

On Linux and Windows, when the window reports no buttons (Hyprland and
other tiling compositors draw none; full screen), the title bar fell back
to the macOS traffic lights' 88, leaving an empty gap left of the sidebar
toggle. It now takes the row's 10. Where no platform is said (headless,
previews) the bar keeps 88, and a bar that draws its own lights
(`lights = true`) never puts the toggle over them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant