From 8a37c1cd83b5ef285f697fbed706c7b4ec0007c4 Mon Sep 17 00:00:00 2001 From: nick_m Date: Sun, 15 Mar 2015 06:25:06 +1100 Subject: [PATCH] Non-transient ArdourDialogs and ArdourWindows appear in the centre of the screen initially (first use in a new session) rather than at the mouse position. --- gtk2_ardour/ardour_dialog.cc | 2 +- gtk2_ardour/ardour_window.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc index 34027ca0c3..37327b2c91 100644 --- a/gtk2_ardour/ardour_dialog.cc +++ b/gtk2_ardour/ardour_dialog.cc @@ -40,7 +40,7 @@ ArdourDialog::ArdourDialog (string title, bool modal, bool use_seperator) , _splash_pushed (false) { init (); - set_position (Gtk::WIN_POS_MOUSE); + set_position (Gtk::WIN_POS_CENTER); } ArdourDialog::ArdourDialog (Gtk::Window& parent, string title, bool modal, bool use_seperator) diff --git a/gtk2_ardour/ardour_window.cc b/gtk2_ardour/ardour_window.cc index 605d0cb5be..3bc80dfc46 100644 --- a/gtk2_ardour/ardour_window.cc +++ b/gtk2_ardour/ardour_window.cc @@ -38,7 +38,7 @@ ArdourWindow::ArdourWindow (string title) { set_title (title); init (); - set_position (Gtk::WIN_POS_MOUSE); + set_position (Gtk::WIN_POS_CENTER); } ArdourWindow::ArdourWindow (Gtk::Window& parent, string /*title*/)