diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-10 10:04:03 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-10 10:04:03 -0400 |
commit | 77624220875a9822cca790af538dd76c43b42750 (patch) | |
tree | 78b9c6d6d0431b14ae629e82c7808a6b9f716c8c /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 2a25d25d3430c81f5c60d5ac82417daf1b63b194 (diff) |
use main window visibility when toggling between editor + mixer
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 8349683d5d..cc0d9f9d24 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -347,7 +347,7 @@ ARDOUR_UI::toggle_editor_and_mixer () } if (editor->tabbed() && !mixer->tabbed()) { - if (!editor->fully_visible()) { + if (main_window_visibility && main_window_visibility->fully_visible()) { if (_tabs.get_current_page() == _tabs.page_num (editor->contents())) { mixer->make_visible (); } @@ -358,7 +358,7 @@ ARDOUR_UI::toggle_editor_and_mixer () } if (mixer->tabbed () && !editor->tabbed()) { - if (!editor->fully_visible()) { + if (main_window_visibility && main_window_visibility->fully_visible()) { if (_tabs.get_current_page() == _tabs.page_num (mixer->contents())) { editor->make_visible (); } |