summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/luawindow.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/luawindow.cc b/gtk2_ardour/luawindow.cc
index 76f20178ec..d385b8e3c1 100644
--- a/gtk2_ardour/luawindow.cc
+++ b/gtk2_ardour/luawindow.cc
@@ -50,6 +50,7 @@
#include "luawindow.h"
#include "public_editor.h"
#include "utils.h"
+#include "ui_config.h"
#include "utils_videotl.h"
#include "pbd/i18n.h"
@@ -108,6 +109,16 @@ LuaWindow::LuaWindow ()
update_title ();
set_wmclass (X_("ardour_mixer"), PROGRAM_NAME);
+#ifdef __APPLE__
+ set_type_hint (Gdk::WINDOW_TYPE_HINT_DIALOG);
+#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);
+ }
+#endif
+
script_select.disable_scrolling ();
set_border_width (0);