From cdd58e77ebbf0718b0cdbef8e5314b7cde0bdc4a Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:48:56 +0800 Subject: [PATCH] fix: flickers child screen when resizing window (#9645) Signed-off-by: fufesou --- flutter/lib/utils/multi_window_manager.dart | 3 +++ flutter/pubspec.lock | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flutter/lib/utils/multi_window_manager.dart b/flutter/lib/utils/multi_window_manager.dart index 191152c86..fa35b4fe9 100644 --- a/flutter/lib/utils/multi_window_manager.dart +++ b/flutter/lib/utils/multi_window_manager.dart @@ -124,6 +124,9 @@ class RustDeskMultiWindowManager { bool withScreenRect, ) async { final windowController = await DesktopMultiWindow.createWindow(msg); + if (isWindows) { + windowController.setInitBackgroundColor(Colors.black); + } final windowId = windowController.windowId; if (!withScreenRect) { windowController diff --git a/flutter/pubspec.lock b/flutter/pubspec.lock index 6210b5399..6551bbb37 100644 --- a/flutter/pubspec.lock +++ b/flutter/pubspec.lock @@ -335,7 +335,7 @@ packages: description: path: "." ref: HEAD - resolved-ref: "0842f44d8644911f65a6b78be22474af0f8a9349" + resolved-ref: "519350f1f40746798299e94786197d058353bac9" url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window" source: git version: "0.1.0"