From 5dec45035d84edcd12eda4dd7373b4681e52082b Mon Sep 17 00:00:00 2001 From: 6486449j <1966063360@qq.com> Date: Thu, 5 Dec 2024 19:10:54 +0800 Subject: [PATCH] fix window visibility on linux --- linux.sh | 0 linux/my_application.cc | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 linux.sh diff --git a/linux.sh b/linux.sh old mode 100644 new mode 100755 diff --git a/linux/my_application.cc b/linux/my_application.cc index 0a19d747..3948199c 100644 --- a/linux/my_application.cc +++ b/linux/my_application.cc @@ -48,7 +48,8 @@ static void my_application_activate(GApplication* application) { } gtk_window_set_default_size(window, 1280, 720); - gtk_widget_realize(GTK_WIDGET(window)); +// gtk_widget_realize(GTK_WIDGET(window)); + gtk_widget_show(GTK_WIDGET(window)); g_autoptr(FlDartProject) project = fl_dart_project_new(); fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);