summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-11-30 18:13:35 +0100
committerRobin Gareus <robin@gareus.org>2016-11-30 18:13:35 +0100
commit84fc68cf0849f102df14e4935d7a147959274cfa (patch)
tree7f10e210db27cb8b0fc9222ad4e3eb5275ff4f84
parent7cef79fb39e9501eba8f6e0900862c018b5eb780 (diff)
Ensure the window-close button is visible for the Engine-Dialog.
-rw-r--r--gtk2_ardour/engine_dialog.cc7
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();