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.
This commit is contained in:
Robin Gareus 2017-12-31 18:31:54 +01:00
parent 6f8b9612f6
commit 7ae480a13d
1 changed files with 11 additions and 0 deletions

View File

@ -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);