Skip to content

Commit d2c2e9a

Browse files
committed
Merge branch 'v0.30.x' of https://github.com/rust-windowing/winit into feat/wayland-file-window-events
2 parents dbb55e1 + f6893a4 commit d2c2e9a

File tree

11 files changed

+22
-10
lines changed

11 files changed

+22
-10
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "winit"
3-
version = "0.30.11"
3+
version = "0.30.12"
44
authors = [
55
"The winit contributors",
66
"Pierre Krieger <[email protected]>",
@@ -120,7 +120,7 @@ ndk = { version = "0.9.0", default-features = false }
120120
[target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies]
121121
block2 = "0.5.1"
122122
core-foundation = "0.9.3"
123-
objc2 = "0.5.2"
123+
objc2 = { version = "0.5.2", features = ["relax-sign-encoding"] }
124124

125125
[target.'cfg(target_os = "macos")'.dependencies]
126126
core-graphics = "0.23.1"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
```toml
1010
[dependencies]
11-
winit = "0.30.11"
11+
winit = "0.30.12"
1212
```
1313

1414
## [Documentation](https://docs.rs/winit)

deny.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ multiple-versions = "deny"
4040
skip = [
4141
{ crate = "raw-window-handle", reason = "we depend on multiple behind features" },
4242
{ crate = "bitflags@1", reason = "the ecosystem is in the process of migrating" },
43+
{ crate = "[email protected]", reason = "the ecosystem is in the process of migrating" },
44+
{ crate = "[email protected]", reason = "the ecosystem is in the process of migrating" },
4345
]
44-
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
46+
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
4547

4648
[bans.build]
4749
include-archives = true

src/changelog/unreleased.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ The migration guide could reference other migration examples in the current
4040
changelog entry.
4141

4242
## Unreleased
43+
44+
### Fixed
45+
46+
- On macOS, fix crash on macOS 26 by using objc2's `relax-sign-encoding` feature.

src/changelog/v0.29.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
- On Web, fix some `WindowBuilder` methods doing nothing.
251251
- On Web, fix some `Window` methods using incorrect HTML attributes instead of CSS properties.
252252
- On Web, fix the bfcache by not using the `beforeunload` event and map bfcache loading/unloading to `Suspended`/`Resumed` events.
253-
- On Web, fix touch input not gaining or loosing focus.
253+
- On Web, fix touch input not gaining or losing focus.
254254
- On Web, fix touch location to be as accurate as mouse position.
255255
- On Web, handle coalesced pointer events, which increases the resolution of pointer inputs.
256256
- On Web, implement `Window::focus_window()`.

src/changelog/v0.30.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.30.12
2+
3+
### Fixed
4+
5+
- On macOS, fix crash on macOS 26 by using objc2's `relax-sign-encoding` feature.
6+
17
## 0.30.11
28

39
### Fixed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
#![allow(clippy::missing_safety_doc)]
187187
#![warn(clippy::uninlined_format_args)]
188188
// TODO: wasm-binding needs to be updated for that to be resolved, for now just silence it.
189-
#![cfg_attr(web_platform, allow(unknown_lints, wasm_c_abi))]
189+
#![cfg_attr(web_platform, allow(unknown_lints, renamed_and_removed_lints, wasm_c_abi))]
190190

191191
#[cfg(feature = "rwh_04")]
192192
pub use rwh_04 as raw_window_handle_04;

src/platform/android.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
//! If your application is currently based on `NativeActivity` via the `ndk-glue` crate and building
6363
//! with `cargo apk`, then the minimal changes would be:
6464
//! 1. Remove `ndk-glue` from your `Cargo.toml`
65-
//! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.30.11",
65+
//! 2. Enable the `"android-native-activity"` feature for Winit: `winit = { version = "0.30.12",
6666
//! features = [ "android-native-activity" ] }`
6767
//! 3. Add an `android_main` entrypoint (as above), instead of using the '`[ndk_glue::main]` proc
6868
//! macro from `ndk-macros` (optionally add a dependency on `android_logger` and initialize

src/platform_impl/linux/wayland/seat/keyboard/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl Dispatch<WlKeyboard, KeyboardData, WinitState> for WinitState {
9999
WlKeyboardEvent::Leave { surface, .. } => {
100100
let window_id = wayland::make_wid(&surface);
101101

102-
// NOTE: we should drop the repeat regardless whethere it was for the present
102+
// NOTE: we should drop the repeat regardless whether it was for the present
103103
// window of for the window which just went gone.
104104
keyboard_state.current_repeat = None;
105105
if let Some(token) = keyboard_state.repeat_token.take() {

src/platform_impl/windows/event_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ fn wait_for_messages_impl(
738738

739739
unsafe {
740740
// Either:
741-
// 1. User wants to wait indefinely if timeout is not set.
741+
// 1. User wants to wait indefinitely if timeout is not set.
742742
// 2. We failed to get and set high resolution timer and we need something instead of it.
743743
let wait_duration_ms = timeout.map(dur2timeout).unwrap_or(INFINITE);
744744

0 commit comments

Comments
 (0)