From 17666e31710cc55e0295f044d822bf921f5fdc1d Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Wed, 30 Apr 2025 21:01:32 +0900 Subject: [PATCH] Bump version on master This commit does not represent a release and only synchronizes CHANGELOG from the latest release. --- Cargo.toml | 2 +- README.md | 2 +- src/changelog/unreleased.md | 19 +------------------ src/changelog/v0.30.md | 30 ++++++++++++++++++++++++++++++ src/platform/android.rs | 2 +- 5 files changed, 34 insertions(+), 21 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 93074b75..e06caa41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ name = "winit" readme = "README.md" repository.workspace = true rust-version.workspace = true -version = "0.30.9" +version = "0.30.10" [package.metadata.docs.rs] features = [ diff --git a/README.md b/README.md index 9f7449ab..8386d7c6 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ ```toml [dependencies] -winit = "0.30.9" +winit = "0.30.10" ``` ## [Documentation](https://docs.rs/winit) diff --git a/src/changelog/unreleased.md b/src/changelog/unreleased.md index bc4107bb..1109dd83 100644 --- a/src/changelog/unreleased.md +++ b/src/changelog/unreleased.md @@ -70,16 +70,13 @@ changelog entry. - Added `Window::surface_position`, which is the position of the surface inside the window. - Added `Window::safe_area`, which describes the area of the surface that is unobstructed. - On X11, Wayland, Windows and macOS, improved scancode conversions for more obscure key codes. -- On Wayland, add `WindowExtWayland::xdg_toplevel`. - Add ability to make non-activating window on macOS using `NSPanel` with `NSWindowStyleMask::NonactivatingPanel`. -- On Windows, add `IconExtWindows::from_resource_name`. - Implement `MonitorHandleProvider` for `MonitorHandle` to access common monitor API. - On X11, set an "area" attribute on XIM input connection to convey the cursor area. - Implement `CustomCursorProvider` for `CustomCursor` to access cursor API. - Add `CustomCursorSource::Url`, `CustomCursorSource::from_animation`. - Implement `CustomIconProvider` for `RgbaIcon`. - Add `icon` module that exposes winit's icon API. -- On Windows, add `CursorGrabMode::Locked`. ### Changed @@ -117,10 +114,8 @@ changelog entry. - Changed how `ModifiersState` is serialized by Serde. - `VideoModeHandle::refresh_rate_millihertz()` and `bit_depth()` now return a `Option`. - `MonitorHandle::position()` now returns an `Option`. -- On iOS and macOS, remove custom application delegates. You are now allowed to override the +- On macOS, remove custom application delegates. You are now allowed to override the application delegate yourself. -- On iOS, no longer act as-if the application successfully open all URLs. Override - `application:didFinishLaunchingWithOptions:` and provide the desired behaviour yourself. - On X11, remove our dependency on libXcursor. (#3749) - Renamed the following APIs to make it clearer that the sizes apply to the underlying surface: - `WindowEvent::Resized` to `SurfaceResized`. @@ -194,7 +189,6 @@ changelog entry. - Updated `windows-sys` to `v0.59`. - To match the corresponding changes in `windows-sys`, the `HWND`, `HMONITOR`, and `HMENU` types now alias to `*mut c_void` instead of `isize`. -- On macOS, no longer need control of the main `NSApplication` class (which means you can now override it yourself). - Removed `KeyEventExtModifierSupplement`, and made the fields `text_with_all_modifiers` and `key_without_modifiers` public on `KeyEvent` instead. - Move `window::Fullscreen` to `monitor::Fullscreen`. @@ -247,14 +241,3 @@ changelog entry. - On macOS, fixed the scancode conversion for audio volume keys. - On macOS, fixed the scancode conversion for `IntlBackslash`. - On macOS, fixed redundant `SurfaceResized` event at window creation. -- On Windows, fixed ~500 ms pause when clicking the title bar during continuous redraw. -- On macOS, `WindowExtMacOS::set_simple_fullscreen` now honors `WindowExtMacOS::set_borderless_game` -- On X11 and Wayland, fixed pump_events with `Some(Duration::Zero)` blocking with `Wait` polling mode -- On macOS, fixed `run_app_on_demand` returning without closing open windows. -- On Wayland, fixed a crash when consequently calling `set_cursor_grab` without pointer focus. -- On Wayland, ensure that external event loop is woken-up when using pump_events and integrating via `FD`. -- On Wayland, apply fractional scaling to custom cursors. -- On macOS, fixed `VideoMode::refresh_rate_millihertz` for fractional refresh rates. -- On macOS, store monitor handle to avoid panics after going in/out of sleep. -- On macOS, allow certain invalid monitor handles and return `None` instead of panicking. -- On Windows, fixed `Ime::Preedit` cursor offset calculation. diff --git a/src/changelog/v0.30.md b/src/changelog/v0.30.md index 58bc1193..f551a0df 100644 --- a/src/changelog/v0.30.md +++ b/src/changelog/v0.30.md @@ -1,3 +1,33 @@ +## 0.30.10 + +### Added + +- On Windows, add `IconExtWindows::from_resource_name`. +- On Windows, add `CursorGrabMode::Locked`. +- On Wayland, add `WindowExtWayland::xdg_toplevel`. + +### Changed + +- On macOS, no longer need control of the main `NSApplication` class (which means you can now override it yourself). +- On iOS, remove custom application delegates. You are now allowed to override the + application delegate yourself. +- On iOS, no longer act as-if the application successfully open all URLs. Override + `application:didFinishLaunchingWithOptions:` and provide the desired behaviour yourself. + +### Fixed + +- On Windows, fixed ~500 ms pause when clicking the title bar during continuous redraw. +- On macOS, `WindowExtMacOS::set_simple_fullscreen` now honors `WindowExtMacOS::set_borderless_game` +- On X11 and Wayland, fixed pump_events with `Some(Duration::Zero)` blocking with `Wait` polling mode +- On Wayland, fixed a crash when consequently calling `set_cursor_grab` without pointer focus. +- On Wayland, ensure that external event loop is woken-up when using pump_events and integrating via `FD`. +- On Wayland, apply fractional scaling to custom cursors. +- On macOS, fixed `run_app_on_demand` returning without closing open windows. +- On macOS, fixed `VideoMode::refresh_rate_millihertz` for fractional refresh rates. +- On macOS, store monitor handle to avoid panics after going in/out of sleep. +- On macOS, allow certain invalid monitor handles and return `None` instead of panicking. +- On Windows, fixed `Ime::Preedit` cursor offset calculation. + ## 0.30.9 ### Changed diff --git a/src/platform/android.rs b/src/platform/android.rs index 79d0144b..086711ac 100644 --- a/src/platform/android.rs +++ b/src/platform/android.rs @@ -62,7 +62,7 @@ //! If your application is currently based on `NativeActivity` via the `ndk-glue` crate and building //! with `cargo apk`, then the minimal changes would be: //! 1. Remove `ndk-glue` from your `Cargo.toml` -//! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.30.9", +//! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.30.10", //! features = [ "android-native-activity" ] }` //! 3. Add an `android_main` entrypoint (as above), instead of using the '`[ndk_glue::main]` proc //! macro from `ndk-macros` (optionally add a dependency on `android_logger` and initialize