--- src/gui/menu_macos.mm.orig 2022-08-01 08:44:38.000000000 -0700 +++ src/gui/menu_macos.mm 2022-08-01 18:06:46.000000000 -0700 @@ -10,7 +10,9 @@ #include "SDL_syswm.h" #if defined(MACOSX) +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 # include +#endif # include # include # include @@ -384,7 +386,7 @@ pt.y = (prct.origin.y + prct.size.height) - pt.y; } - err = CGGetDisplaysWithPoint(pt,1,&did,&cnt); + err = CGGetDisplaysWithPoint(CGPointMake(pt.x,pt.y),1,&did,&cnt); /* This might happen if our window is so far off the screen that the center point does not match any monitor */ if (err != kCGErrorSuccess) {