From 22e1e7c8d84d145b33475b27b7da6e1729ac84d2 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Tue, 27 Dec 2022 16:18:28 +0800 Subject: [PATCH] fix: regrab key from minimize restore on windows --- flutter/lib/desktop/pages/remote_page.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flutter/lib/desktop/pages/remote_page.dart b/flutter/lib/desktop/pages/remote_page.dart index dd569a110..e16a61890 100644 --- a/flutter/lib/desktop/pages/remote_page.dart +++ b/flutter/lib/desktop/pages/remote_page.dart @@ -148,6 +148,16 @@ class _RemotePageState extends State } } + @override + void onWindowRestore() { + super.onWindowRestore(); + // On windows, we use `onWindowRestore` way to handle window restore from + // a minimized state. + if (Platform.isWindows) { + _isWindowBlur = false; + } + } + @override void dispose() { debugPrint("REMOTE PAGE dispose ${widget.id}");