From 77624220875a9822cca790af538dd76c43b42750 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 May 2016 10:04:03 -0400 Subject: [PATCH] use main window visibility when toggling between editor + mixer --- gtk2_ardour/ardour_ui_dialogs.cc | 4 ++-- 1 file 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 (); }