summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-14 01:05:43 +0100
committerRobin Gareus <robin@gareus.org>2017-02-14 01:05:43 +0100
commit7330357e1c1ee21f72711efbbbac0e0c940a7050 (patch)
treeae03695f49b5eed9cfe6a24cb3d4cef1827abf8d
parentca65101e49061c1cee8fdd768f816e294add510d (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.
-rw-r--r--gtk2_ardour/processor_box.cc2
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 ();