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).
This commit is contained in:
Chris Pick authored and Wez Furlong committed 2025-07-13 13:51:09 +01:00
1 parent c7f4b081a6
commit 85c587f9f3
1 file changed
-1
-1
View File
@@ -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,