From 838109cddfa11e906f47a8835f1632bec49e3f8d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Nov 2025 17:22:36 -0700 Subject: [PATCH] expose default window position in prefs editor under Appearance --- gtk2_ardour/rc_option_editor.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 7734de2904..4cc4f6d9c7 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -3191,6 +3191,18 @@ These settings will only take effect after %1 is restarted.\n\ add_option (_("Appearance"), bgo); #endif + ComboOption* winpos = new ComboOption ( + "default-window-position", + _("Default location of new windows"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_default_window_position), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_default_window_position) + ); + winpos->add (Gtk::WIN_POS_CENTER, _("Center of screen")); + winpos->add (Gtk::WIN_POS_MOUSE, _("Mouse position")); + winpos->add (Gtk::WIN_POS_CENTER_ALWAYS, _("Center of screen, really")); + winpos->add (Gtk::WIN_POS_CENTER_ON_PARENT, _("Center of parent window")); + add_option (_("Appearance"), winpos); + #if ENABLE_NLS add_option (_("Appearance/Translation"), new OptionEditorHeading (_("Internationalization")));