Inform LV2 plugins about main window ID

This commit is contained in:
Robin Gareus
2019-11-22 20:05:04 +01:00
parent c2d44c0f05
commit f7b3dffebe

View File

@@ -36,6 +36,7 @@
#include "pbd/i18n.h"
#include "ardour/session.h"
#include "ardour/lv2_plugin.h"
#include "gtkmm2ext/bindings.h"
@@ -56,6 +57,9 @@
#include "opts.h"
#include "utils.h"
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
using namespace Gtk;
using namespace PBD;
@@ -390,6 +394,11 @@ ARDOUR_UI::setup_windows ()
*/
g_signal_connect (_tabs.gobj(), "create-window", (GCallback) ::tab_window_root_drop, this);
#ifdef GDK_WINDOWING_X11
/* allow externalUIs to be transient, on top of the main window */
LV2Plugin::set_main_window_id (GDK_DRAWABLE_XID(_main_window.get_window()->gobj()));
#endif
return 0;
}