summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_dependents.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-11-22 20:05:04 +0100
committerRobin Gareus <robin@gareus.org>2019-11-22 20:05:04 +0100
commitf7b3dffebe4f262cad3f10502bc5fcde9213c821 (patch)
tree3605d5b6a5da4c2c62ed9216e59a7fcc2ba4fe9d /gtk2_ardour/ardour_ui_dependents.cc
parentc2d44c0f05a0740a4a26c35849d6bf62998d0023 (diff)
Inform LV2 plugins about main window ID
Diffstat (limited to 'gtk2_ardour/ardour_ui_dependents.cc')
-rw-r--r--gtk2_ardour/ardour_ui_dependents.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc
index 2edef6bce3..22245240e0 100644
--- a/gtk2_ardour/ardour_ui_dependents.cc
+++ b/gtk2_ardour/ardour_ui_dependents.cc
@@ -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;
}