Skip to content

Commit 7cd39c7

Browse files
authored
refactor(core): use random window id to simplify window creation, closes #3645 #3597 (#3684)
* refactor(core): window id * fixes * reintroduce send_tao_window_event * cleanup code * add change file * fix: windows build * add getter * fix windows build
1 parent c4ca80f commit 7cd39c7

5 files changed

Lines changed: 201 additions & 171 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-runtime-wry": minor
3+
---
4+
5+
Use a random window id instead of `tao::window::WindowId` to not block the thread waiting for the event loop to process the window creation.

core/tauri-runtime-wry/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ wry = { version = "0.13.3", default-features = false, features = [ "file-drop",
1717
tauri-runtime = { version = "0.3.3", path = "../tauri-runtime" }
1818
tauri-utils = { version = "1.0.0-rc.3", path = "../tauri-utils" }
1919
uuid = { version = "0.8.2", features = [ "v4" ] }
20+
rand = "0.8"
2021

2122
[target."cfg(windows)".dependencies]
2223
webview2-com = "0.13.0"

0 commit comments

Comments
 (0)