xquartz: Remove support for SnowLeopard and earlier versions of macOS

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2021-01-27 13:29:52 -08:00
parent f699aac2ea
commit cc9cf6f085
1 changed files with 1 additions and 4 deletions

View File

@ -1667,15 +1667,12 @@ handle_mouse:
0.0, 0.0);
}
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
// TODO: Change 1117 to NSAppKitVersionNumber10_7 when it is defined
if (NSAppKitVersionNumber >= 1117 &&
if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_7 &&
XQuartzScrollInDeviceDirection &&
[e isDirectionInvertedFromDevice]) {
deltaX *= -1;
deltaY *= -1;
}
#endif
/* This hack is in place to better deal with "clicky" scroll wheels:
* http://xquartz.macosforge.org/trac/ticket/562
*/