1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-09 11:37:19 +03:00

macos: another wgpu related fixup

This commit is contained in:
Wez Furlong 2024-01-20 12:58:59 -07:00
parent 162b94cb67
commit 1484e2a673
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -822,13 +822,13 @@ impl WindowOps for Window {
_config: &ConfigHandle,
window_state: WindowState,
) -> anyhow::Result<Option<Parameters>> {
let raw = self.raw_window_handle();
let raw = self.window_handle()?;
// We implement this method primarily to provide Notch-avoidance for
// systems with a notch.
// We only need this for non-native full screen mode.
let native_full_screen = match raw {
let native_full_screen = match raw.as_raw() {
RawWindowHandle::AppKit(raw) => {
let style_mask = unsafe { NSWindow::styleMask(raw.ns_window as *mut Object) };
style_mask.contains(NSWindowStyleMask::NSFullScreenWindowMask)