From 7ae480a13db45aaaa186ce2c87d889627b632e10 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 31 Dec 2017 18:31:54 +0100 Subject: [PATCH] Keep Script Window on top. Compare to f83dbf83. We cannot use an ArdourWindow here (which would do this automatically) since we don't want any keyboard-event forwarding from this editor-window. It's also a main window, not a WM::ProxyTemporary. --- gtk2_ardour/luawindow.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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);