From dce6cbc1116112aa873771f0019e42d356af88b9 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 20 Feb 2023 10:04:09 -0800 Subject: [PATCH] Update `windows-sys` dependency, and `winit` dev dependency Using the latest `winit` version in examples fixes resizing behavior on Wayland, so the workaround for that in the `winit` example is also removed here. --- Cargo.toml | 4 ++-- examples/winit.rs | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 27cfe35..56c8020 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,7 +36,7 @@ x11rb = { version = "0.11.0", features = ["allow-unsafe-code", "dl-libxcb", "shm fastrand = { version = "1.8.0", optional = true } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.42.0" +version = "0.45.0" features = ["Win32_Graphics_Gdi", "Win32_UI_WindowsAndMessaging", "Win32_Foundation"] [target.'cfg(target_os = "macos")'.dependencies] @@ -60,7 +60,7 @@ cfg_aliases = "0.1.1" [dev-dependencies] instant = "0.1.12" -winit = "0.27.2" +winit = "0.28.1" [dev-dependencies.image] version = "0.23.14" diff --git a/examples/winit.rs b/examples/winit.rs index 3ecb33c..db421a4 100644 --- a/examples/winit.rs +++ b/examples/winit.rs @@ -54,12 +54,6 @@ fn main() { } if window_id == window.id() => { *control_flow = ControlFlow::Exit; } - Event::WindowEvent { - event: WindowEvent::Resized(_), - window_id, - } if window_id == window.id() => { - window.request_redraw(); - } _ => {} } });