13
0
Robin Gareus 2021-03-11 18:19:21 +01:00
parent e07b3104bb
commit 9f3fba6988
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 9 additions and 3 deletions

View File

@ -94,7 +94,9 @@ VST3HWNDPluginUI::view_size_allocate (Gtk::Allocation& allocation)
}
PBD::Unwinder<bool> uw (_resize_in_progress, true);
ViewRect rect;
if (view->getSize (&rect) == kResultOk) {
if (view->getSize (&rect) == kResultOk
&& ! (rect.right - rect.left == allocation.get_width () && rect.bottom - rect.top == allocation.get_height ()))
{
rect.right = rect.left + allocation.get_width ();
rect.bottom = rect.top + allocation.get_height ();
#if 0

View File

@ -122,7 +122,9 @@ VST3NSViewPluginUI::view_size_allocate (Gtk::Allocation& allocation)
PBD::Unwinder<bool> uw (_resize_in_progress, true);
ViewRect rect;
if (view->getSize (&rect) == kResultOk) {
if (view->getSize (&rect) == kResultOk
&& !(rect.right - rect.left == allocation.get_width () && rect.bottom - rect.top == allocation.get_height () && rect.left == xx && rect.top == yy))
{
rect.left = xx;
rect.top = yy;
rect.right = rect.left + allocation.get_width ();

View File

@ -247,7 +247,9 @@ VST3X11PluginUI::view_size_allocate (Gtk::Allocation& allocation)
PBD::Unwinder<bool> uw (_resize_in_progress, true);
ViewRect rect;
if (view->getSize (&rect) == kResultOk) {
if (view->getSize (&rect) == kResultOk
&& ! (rect.right - rect.left == allocation.get_width () && rect.bottom - rect.top == allocation.get_height ()))
{
rect.right = rect.left + allocation.get_width ();
rect.bottom = rect.top + allocation.get_height ();
#if 0