Skip to content

Commit 7b32b50

Browse files
committed
fix mobile build
1 parent 3ce3318 commit 7b32b50

File tree

1 file changed

+1
-1
lines changed
  • crates/tauri-runtime-wry/src

1 file changed

+1
-1
lines changed

crates/tauri-runtime-wry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl WindowEventWrapper {
504504
new_inner_size: PhysicalSizeWrapper(**new_inner_size).into(),
505505
},
506506
TaoWindowEvent::Focused(focused) => {
507-
#[cfg(any(target_os = "linux", target_os = "macos"))]
507+
#[cfg(not(windows))]
508508
return Self(Some(WindowEvent::Focused(*focused)));
509509
// on multiwebview mode, if there's no focused webview, it means we're receiving a direct window focus change
510510
// (without receiving a webview focus, such as when clicking the taskbar app icon or using Alt + Tab)

0 commit comments

Comments
 (0)