diff options
author | nick_m <mainsbridge@gmail.com> | 2015-03-10 02:25:25 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-03-10 02:25:25 +1100 |
commit | 44d46529959e5fbdfa5e2d13717812cf592c5a6b (patch) | |
tree | a6df04c58c16560c6e6cfe80243d609d9e24ef13 /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 2d6e48fb0b7e1ea801ba4f5dc561ebb0b92f7645 (diff) |
Introduce theme preference "transients follow front" which, when enabled,
sets transient windows to be transients for the front window when switching
between the editor and mixer. This is the current behavior on non-osx
builds.
When disabled, there is no reparenting of transient windows. This is the
current behavior on osx.
This preference defaults to off.
Also fix "all windows are dialogs" checkbox being out of sync with the ui
state.
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index d5cbeeef11..e382406eea 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -336,7 +336,9 @@ ARDOUR_UI::goto_editor_window () editor->show_window (); editor->present (); /* mixer should now be on top */ - WM::Manager::instance().set_transient_for (editor); + if (ARDOUR_UI::config()->get_transients_follow_front()) { + WM::Manager::instance().set_transient_for (editor); + } _mixer_on_top = false; } @@ -365,7 +367,9 @@ ARDOUR_UI::goto_mixer_window () mixer->show_window (); mixer->present (); /* mixer should now be on top */ - WM::Manager::instance().set_transient_for (mixer); + if (ARDOUR_UI::config()->get_transients_follow_front()) { + WM::Manager::instance().set_transient_for (mixer); + } _mixer_on_top = true; } |