diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-27 15:47:43 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-27 15:48:13 -0400 |
commit | 70b88d5e8930cb5fff79c1899a604dada7b11ae0 (patch) | |
tree | 0f7ac2541019a3c4d4adeeffd4f62c6fe62d5f19 /gtk2_ardour/au_pluginui.mm | |
parent | c1c81a239c1975ef9c7772088c3341d4c0194228 (diff) |
change ordering of origin-move and window-resize for AU plugins
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 18 |
1 files 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 */ |