Skip to content

fix: keep the window buttons in classic titlebar mode - #6

Merged
mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/classic-titlebar-buttons-20261014
Nov 24, 2026
Merged

mirkobrombin merged 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/classic-titlebar-buttons-20261014

Conversation

@perlowja

Copy link
Copy Markdown
Contributor

Leafs hid the window toolbar unconditionally, because each leaf has its own hover controls. With legacy-titlebar (or force-ssd) on, that toolbar is the static titlebar Singularity.Window sets up with minimize, maximize and close, so Leafs was the only app with no window buttons in that mode.

The toolbar is now hidden only in floating-bubbles mode. In legacy and SSD modes the window keeps the toolbar state Singularity.Window already configured.

Before: gsettings set dev.sinty.desktop legacy-titlebar true, open Leafs: no titlebar and no minimize/maximize/close, while Files, Calculator and Text Editor show them.
After: Leafs shows the classic titlebar with working minimize, maximize and close. With legacy-titlebar false, nothing changes (hover controls only).

Build and tests on Debian forky: ninja builds, meson test 49 of 49 pass (same as main).

AI assistance: disclosed

The window hid its toolbar unconditionally because every leaf draws its
own hover controls. With legacy-titlebar (or force-ssd) enabled the
toolbar is the static titlebar that carries the minimize, maximize and
close buttons, so Leafs was the only app with no window buttons in that
mode.

Hide the toolbar only in the floating-bubbles mode it was written for.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: Traced the missing Leafs window buttons to the unconditional toolbar hide and wrote the guard; reviewed and tested by the author.
@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin for review when you have a moment.

@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin this still applies cleanly to current main; ready for review when you have time.

@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin this merges cleanly into main and CI is green. Ready for your review.

@mirkobrombin

Copy link
Copy Markdown
Member

Good catch, the toolbar only hides with floating bubbles. Merging.

@mirkobrombin
mirkobrombin merged commit cb69f11 into singularityos-lab:main Nov 24, 2026
1 check passed
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.

2 participants