From 70b88d5e8930cb5fff79c1899a604dada7b11ae0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Apr 2016 15:47:43 -0400 Subject: [PATCH] change ordering of origin-move and window-resize for AU plugins --- gtk2_ardour/au_pluginui.mm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 2115214d26..e3770bbc01 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -597,15 +597,6 @@ AUPluginUI::cocoa_view_resized () [au_view setAutoresizingMask:NSViewNotSizable]; - /* this resizes the window. it will eventually trigger a new - * size_allocate event/callback, and we'll end up in - * ::update_view_size(). We want to stop that from doing anything, - * because we've already resized the window to fit the new new view, - * so there's no need to actually update the view size again. - */ - - [window setFrame:windowFrame display:1]; - /* Some stupid AU Views change the origin of the original AU View when they are resized (I'm looking at you AUSampler). If the origin has been moved, move it back. @@ -628,6 +619,15 @@ AUPluginUI::cocoa_view_resized () << std::endl; } + /* this resizes the window. it will eventually trigger a new + * size_allocate event/callback, and we'll end up in + * ::update_view_size(). We want to stop that from doing anything, + * because we've already resized the window to fit the new new view, + * so there's no need to actually update the view size again. + */ + + [window setFrame:windowFrame display:1]; + [au_view setAutoresizingMask:old_auto_resize]; /* keep a copy of the size of the AU NSView. We didn't set - the plugin did */