Skip to content

Commit f69e923

Browse files
authored
Revert "macOS Sonoma (14.0) / Xcode 15.0 — Compatibility Fixes + Docs… (#9991)
… (#9905)" This reverts commit 20ed3e0. Issue was already fixed: rust-windowing/winit#3118
1 parent e5dbde8 commit f69e923

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

crates/bevy_winit/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ bevy_utils = { path = "../bevy_utils", version = "0.12.0-dev" }
2828
bevy_tasks = { path = "../bevy_tasks", version = "0.12.0-dev" }
2929

3030
# other
31-
winit = { version = "0.28", default-features = false }
31+
winit = { version = "0.28.7", default-features = false }
3232
accesskit_winit = { version = "0.14", default-features = false }
3333
approx = { version = "0.5", default-features = false }
3434
raw-window-handle = "0.5"
3535

3636
[target.'cfg(target_os = "android")'.dependencies]
37-
winit = { version = "0.28", default-features = false, features = ["android-native-activity"] }
37+
winit = { version = "0.28.7", default-features = false, features = [
38+
"android-native-activity",
39+
] }
3840

3941
[target.'cfg(target_arch = "wasm32")'.dependencies]
4042
wasm-bindgen = { version = "0.2" }

crates/bevy_winit/src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,6 @@ pub fn winit_runner(mut app: App) {
441441

442442
match event {
443443
WindowEvent::Resized(size) => {
444-
// TODO: Remove this once we upgrade winit to a version with the fix
445-
#[cfg(target_os = "macos")]
446-
if size.width == u32::MAX || size.height == u32::MAX {
447-
// HACK to fix a bug on Macos 14
448-
// https://github.com/rust-windowing/winit/issues/2876
449-
return;
450-
}
451-
452444
window
453445
.resolution
454446
.set_physical_resolution(size.width, size.height);

0 commit comments

Comments
 (0)