diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-14 01:05:43 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-14 01:05:43 +0100 |
commit | 7330357e1c1ee21f72711efbbbac0e0c940a7050 (patch) | |
tree | ae03695f49b5eed9cfe6a24cb3d4cef1827abf8d /gtk2_ardour | |
parent | ca65101e49061c1cee8fdd768f816e294add510d (diff) |
Reset window-size when switching between custom and generic plugin UI.
Both views have uncorrelated geometry, apply one size to the other
makes no sense and usually results in odd window sizes, particularly
for custom plugin UIs with aspect-ratio constraints.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index b5fe9abbe2..2564d070a8 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -4286,6 +4286,7 @@ ProcessorWindowProxy::get (bool create) } if (_window && (is_custom != want_custom)) { /* drop existing window - wrong type */ + set_state_mask (Gtkmm2ext::WindowProxy::StateMask (state_mask () & ~WindowProxy::Size)); drop_window (); } @@ -4310,6 +4311,7 @@ ProcessorWindowProxy::show_the_right_window () { if (_window && (is_custom != want_custom)) { /* drop existing window - wrong type */ + set_state_mask (Gtkmm2ext::WindowProxy::StateMask (state_mask () & ~WindowProxy::Size)); drop_window (); } toggle (); |