fix build for intel mac

This commit is contained in:
Wez Furlong committed 2022-03-26 23:14:15 -07:00
1 parent 4e343eb1e5
commit 4cd893335b
1 file changed
+1 -1
+1 -1
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,