diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-30 18:13:35 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-30 18:13:35 +0100 |
commit | 84fc68cf0849f102df14e4935d7a147959274cfa (patch) | |
tree | 7f10e210db27cb8b0fc9222ad4e3eb5275ff4f84 /gtk2_ardour | |
parent | 7cef79fb39e9501eba8f6e0900862c018b5eb780 (diff) |
Ensure the window-close button is visible for the Engine-Dialog.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/engine_dialog.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 63883eb7c9..b4b09c5629 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -52,6 +52,7 @@ #include "ardour_ui.h" #include "engine_dialog.h" #include "gui_thread.h" +#include "ui_config.h" #include "utils.h" #include "pbd/i18n.h" @@ -112,6 +113,12 @@ EngineControl::EngineControl () 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(); |