fix: flickers child screen when resizing window (#9645)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2024-10-14 15:48:56 +08:00 committed by GitHub
parent ce924cc0d3
commit cdd58e77eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -124,6 +124,9 @@ class RustDeskMultiWindowManager {
bool withScreenRect, bool withScreenRect,
) async { ) async {
final windowController = await DesktopMultiWindow.createWindow(msg); final windowController = await DesktopMultiWindow.createWindow(msg);
if (isWindows) {
windowController.setInitBackgroundColor(Colors.black);
}
final windowId = windowController.windowId; final windowId = windowController.windowId;
if (!withScreenRect) { if (!withScreenRect) {
windowController windowController

View File

@ -335,7 +335,7 @@ packages:
description: description:
path: "." path: "."
ref: HEAD ref: HEAD
resolved-ref: "0842f44d8644911f65a6b78be22474af0f8a9349" resolved-ref: "519350f1f40746798299e94786197d058353bac9"
url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window" url: "https://github.com/rustdesk-org/rustdesk_desktop_multi_window"
source: git source: git
version: "0.1.0" version: "0.1.0"