#include "engine_dialog.h"
#include "gui_thread.h"
#include "ui_config.h"
+#include "public_editor.h"
#include "utils.h"
#include "pbd/i18n.h"
#include "splash.h"
set_name (X_("AudioMIDISetup"));
- if (UIConfiguration::instance().get_all_floating_windows_are_dialogs()) {
- set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
- } else {
- set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
- }
-
/* the backend combo is the one thing that is ALWAYS visible */
vector<const ARDOUR::AudioBackendInfo*> backends = ARDOUR::AudioEngine::instance()->available_backends();
start_stop_button.grab_focus();
}
+void
+EngineControl::on_map ()
+{
+ if (!ARDOUR_UI::instance()->session_loaded && !PublicEditor::_instance) {
+ set_type_hint (Gdk::WINDOW_TYPE_HINT_NORMAL);
+ } else if (UIConfiguration::instance().get_all_floating_windows_are_dialogs()) {
+ set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
+ } else {
+ set_type_hint (Gdk::WINDOW_TYPE_HINT_UTILITY);
+ }
+ ArdourDialog::on_map ();
+}
+
bool
EngineControl::try_autostart ()
{
sigc::connection output_channels_connection;
void on_show ();
+ void on_map ();
void control_app_button_clicked ();
void start_stop_button_clicked ();
void update_devices_button_clicked ();