VST3: Fix initial GUI display and window-size

This commit is contained in:
Robin Gareus 2020-09-23 18:14:57 +02:00
parent b8028f1239
commit b7c9917467
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 5 additions and 2 deletions

View File

@ -140,7 +140,8 @@ VST3HWNDPluginUI::on_window_show (const std::string& /*title*/)
}
gtk_widget_realize (GTK_WIDGET(_gui_widget.gobj()));
_gui_widget.show ();
_gui_widget.show_all ();
_gui_widget.queue_resize ();
return true;
}

View File

@ -209,6 +209,7 @@ VST3NSViewPluginUI::on_window_show (const std::string& /*title*/)
{
gtk_widget_realize (GTK_WIDGET(_gui_widget.gobj()));
show_all ();
_gui_widget.queue_resize ();
return true;
}

View File

@ -282,7 +282,8 @@ VST3X11PluginUI::on_window_show (const std::string& /*title*/)
return false;
}
gtk_widget_realize (GTK_WIDGET(_gui_widget.gobj()));
_gui_widget.show ();
_gui_widget.show_all ();
_gui_widget.queue_resize ();
return true;
}