From 7da7bf3f1338dbed7aac214e01f6ec661832b525 Mon Sep 17 00:00:00 2001 From: Ngo Iok Ui Date: Wed, 24 Mar 2021 13:06:58 +0800 Subject: [PATCH] Fix visibility on webview2 when window was invisible previously We set webview2 to be always visible for simplicity. This is more of a workaround. Microsoft is also working to fix it: https://github.com/MicrosoftEdge/WebView2Feedback/issues/1077 --- src/webview/win/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webview/win/mod.rs b/src/webview/win/mod.rs index c230ef3a6..7577490c2 100644 --- a/src/webview/win/mod.rs +++ b/src/webview/win/mod.rs @@ -180,6 +180,7 @@ impl WV for InnerWebView { } } + controller.put_is_visible(true); let _ = controller_clone.set(controller); if let Some(file_drop_handler) = file_drop_handler {