From 7330357e1c1ee21f72711efbbbac0e0c940a7050 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 14 Feb 2017 01:05:43 +0100 Subject: [PATCH] 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. --- gtk2_ardour/processor_box.cc | 2 ++ 1 file changed, 2 insertions(+) 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 ();