fix(settings): force window decorations on settings dialog (#333)

Fix missing close button in settings window title bar on Ubuntu 22.04
(GNOME 42). The dialog was created with flags=0 and no transient parent,
which causes GTK to not apply decorations on certain window managers.
Explicitly call set_decorated(True) to ensure the close button is always
visible regardless of WM hints.

Fixes #323
This commit is contained in:
Jatin K Malik
2026-03-19 01:55:02 -07:00
committed by GitHub
parent 99699f18eb
commit e478f7e353
+1
View File
@@ -726,6 +726,7 @@ class SettingsDialog(Gtk.Dialog):
shortcut_update_callback: callable = None,
):
super().__init__(title="Vocalinux Settings", transient_for=parent, flags=0)
self.set_decorated(True) # Force window decorations (close button) on all WMs
self.config_manager = config_manager
self.speech_engine = speech_engine
self.shortcut_update_callback = shortcut_update_callback