fix: cm initial size incorrect sometimes.

opt: linux can hide window when rustdesk core not ready.
This commit is contained in:
Kingtous 2022-09-26 17:56:32 +08:00
parent 0589f5ae9a
commit ed04ede830
3 changed files with 16 additions and 7 deletions

View file

@ -53,6 +53,7 @@ static void my_application_activate(GApplication* application) {
// bdw->setCustomFrame(true); // <-- add this line
gtk_window_set_default_size(window, 800, 600); // <-- comment this line
gtk_widget_show(GTK_WIDGET(window));
gtk_widget_set_opacity(GTK_WIDGET(window), 0);
g_autoptr(FlDartProject) project = fl_dart_project_new();
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);