summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-30 11:15:23 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-30 11:15:23 -0400
commitd54a35a6718e4791ef57d0ad86dc2f41a1ec46a2 (patch)
tree3c1c35c1d855bf94f01c5b67fc3c3f3911eebce0 /gtk2_ardour/plugin_ui.cc
parent07a5372eea6b70dd9f3224aa3aead904e2eef72c (diff)
cleanup AU GUI support, which was broken because prefheight and prefwidth were left unset after a cleanup attempt some months ago. add a few more tweaks based on current 2.x code and some tricks found elsewhere that dont' change behaviour but are just better
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 2dd8741a13..5b281f33ab 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -226,6 +226,12 @@ PluginUIWindow::on_show ()
}
if (_pluginui) {
+#if defined (HAVE_AUDIOUNITS) && defined(GTKOSX)
+ if (pre_deactivate_x >= 0) {
+ move (pre_deactivate_x, pre_deactivate_y);
+ }
+#endif
+
if (_pluginui->on_window_show (_title)) {
Window::on_show ();
}
@@ -239,6 +245,10 @@ PluginUIWindow::on_show ()
void
PluginUIWindow::on_hide ()
{
+#if defined (HAVE_AUDIOUNITS) && defined(GTKOSX)
+ get_position (pre_deactivate_x, pre_deactivate_y);
+#endif
+
Window::on_hide ();
if (_pluginui) {