From d7c6aa457742f56cdf6bd0684914726dd2a9d71d Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Sat, 6 Jan 2024 00:36:31 -0800 Subject: [PATCH] fix builds for windows --- packages/desktop/src/menubar.rs | 2 +- packages/desktop/src/webview.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/desktop/src/menubar.rs b/packages/desktop/src/menubar.rs index a30551002..ca20c67a6 100644 --- a/packages/desktop/src/menubar.rs +++ b/packages/desktop/src/menubar.rs @@ -16,7 +16,7 @@ mod impl_ { #[allow(unused)] pub fn build_menu_bar(menu: Menu, window: &Window) { #[cfg(target_os = "windows")] - menu.init_for_hwnd(window); + menu.init_for_hwnd(window.raw_display_handle_rwh_05()); // #[cfg(target_os = "linux")] // { diff --git a/packages/desktop/src/webview.rs b/packages/desktop/src/webview.rs index f262d1556..efec91e39 100644 --- a/packages/desktop/src/webview.rs +++ b/packages/desktop/src/webview.rs @@ -106,7 +106,7 @@ impl WebviewInstance { #[cfg(windows)] { // Windows has a platform specific settings to disable the browser shortcut keys - use wry::webview::WebViewBuilderExtWindows; + use wry::WebViewBuilderExtWindows; webview = webview.with_browser_accelerator_keys(false); }