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

fix build for intel mac

This commit is contained in:
Wez Furlong 2022-03-26 23:14:15 -07:00
parent 4e343eb1e5
commit 4cd893335b

View File

@ -702,7 +702,7 @@ impl WindowOps for Window {
let main_screen = unsafe { NSScreen::mainScreen(nil) };
let has_safe_area_insets: BOOL =
unsafe { msg_send![main_screen, respondsToSelector: sel!(safeAreaInsets)] };
if has_safe_area_insets {
if has_safe_area_insets == YES {
#[derive(Debug)]
struct NSEdgeInsets {
top: CGFloat,