Repository navigation
fix: keep the window buttons in classic titlebar mode - #6
Merged
mirkobrombin merged 1 commit intoNov 24, 2026
Merged
mirkobrombin merged 1 commit into
mirkobrombin merged 1 commit into
Conversation
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.
Contributor
Author
|
@mirkobrombin for review when you have a moment. |
Contributor
Author
|
@mirkobrombin this still applies cleanly to current main; ready for review when you have time. |
Contributor
Author
|
@mirkobrombin this merges cleanly into main and CI is green. Ready for your review. |
Member
|
Good catch, the toolbar only hides with floating bubbles. Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leafs hid the window toolbar unconditionally, because each leaf has its own hover controls. With
legacy-titlebar(orforce-ssd) on, that toolbar is the static titlebarSingularity.Windowsets 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.Windowalready 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:
ninjabuilds,meson test49 of 49 pass (same as main).AI assistance: disclosed