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.
This commit is contained in:
Robin Gareus 2017-02-14 01:05:43 +01:00
parent ca65101e49
commit 7330357e1c

View File

@ -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 ();