From 242f161d46700e2766763878fcb63caf98d40ff5 Mon Sep 17 00:00:00 2001 From: NimBold Date: Thu, 27 Aug 2026 21:48:49 +0330 Subject: [PATCH] test(startup): validate visible Windows renderer (#37) - Issue #37: test the full 1.4.0 renderer with normal native window activation.\n- Remove only the Windows hide/focusability gate used by the current main branch.\n\nRefs #37. --- src-tauri/src/lib.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index e1f0f2c..b0612a1 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -18553,17 +18553,6 @@ pub fn run() { main_window_builder = main_window_builder .inner_size(startup_size.width as f64, startup_size.height as f64) .prevent_overflow(); - #[cfg(target_os = "windows")] - { - // Wry installs its parent WM_SETFOCUS handler while WebView2 - // is still being initialized. Keep the host hidden and - // non-activatable until RunEvent::Ready so Windows cannot - // re-enter that handler during native construction. - main_window_builder = main_window_builder - .visible(false) - .focused(false) - .focusable(false); - } main_window_builder .build() .map_err(|error| format!("failed to create main window: {error}"))?; @@ -19901,8 +19890,6 @@ pub fn run() { .run(|app_handle, event| match event { tauri::RunEvent::Ready => { mark_main_window_startup_complete(app_handle); - #[cfg(target_os = "windows")] - reveal_main_window(app_handle); #[cfg(not(target_os = "windows"))] restore_pending_main_window(app_handle); }