Desktop: Switch to the latest unreleased version of Winit (#3177)

* Use unstable winit

* Improve

* Remove unnecessary heap indirection
This commit is contained in:
Timon
2025-09-17 05:16:11 -07:00
committed by Dennis Kobert
parent 4662cbbbc1
commit 3fe7c477e9
14 changed files with 567 additions and 527 deletions

View File

@@ -26,7 +26,7 @@ struct WindowWrapper {
#[cfg(target_family = "wasm")]
window: SurfaceHandle<HtmlCanvasElement>,
#[cfg(not(target_family = "wasm"))]
window: SurfaceHandle<Arc<winit::window::Window>>,
window: SurfaceHandle<Arc<dyn winit::window::Window>>,
}
#[cfg(target_family = "wasm")]
@@ -187,7 +187,7 @@ impl ApplicationIo for WasmApplicationIo {
#[cfg(target_family = "wasm")]
type Surface = HtmlCanvasElement;
#[cfg(not(target_family = "wasm"))]
type Surface = Arc<winit::window::Window>;
type Surface = Arc<dyn winit::window::Window>;
#[cfg(feature = "wgpu")]
type Executor = WgpuExecutor;
#[cfg(not(feature = "wgpu"))]