From 9ed2883c907180e88bb472749e76a4657aa5de68 Mon Sep 17 00:00:00 2001 From: Jason Perlow Date: Wed, 14 Oct 2026 11:31:36 -0400 Subject: [PATCH] fix: keep the window buttons in classic titlebar mode 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. --- src/window.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/window.vala b/src/window.vala index f3b3da4..5d7e9f1 100644 --- a/src/window.vala +++ b/src/window.vala @@ -21,8 +21,10 @@ namespace Singularity.Apps { set_title (_("Leafs")); #endif set_default_size (600, 600); - toolbar.is_static = false; - toolbar.visible = false; + if (floating_bubbles) { + toolbar.is_static = false; + toolbar.visible = false; + } bloom_overlay = new Gtk.Overlay (); bloom_overlay.set_child (leaves_box);