From 85c587f9f3d8be49dfa252da116fc9ca290df113 Mon Sep 17 00:00:00 2001 From: Chris Pick Date: Thu, 10 Jul 2025 19:07:24 -0400 Subject: [PATCH] Remove deprecated `NSWindowFullScreenButton` Fixes #7080 to prevent null pointer dereference (and crash in debug mode) on macOS. `NSWindowFullScreenButton` [is deprecated](https://developer.apple.com/documentation/appkit/nswindow/buttontype/fullscreenbutton?changes=__6_5&language=objc). Removing it prevents a null pointer from being dereferenced and doesn't otherwise impact behavior. Confirmed that `window_decorations = "RESIZE"` sill works [with rounded corners](https://github.com/wezterm/wezterm/issues/1034). --- window/src/os/macos/window.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index a0dbda18c..a90f28b1d 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -1385,7 +1385,6 @@ fn apply_decorations_to_window( }; for titlebar_button in &[ - appkit::NSWindowButton::NSWindowFullScreenButton, appkit::NSWindowButton::NSWindowMiniaturizeButton, appkit::NSWindowButton::NSWindowCloseButton, appkit::NSWindowButton::NSWindowZoomButton,