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 */