Commit cc9cf6f0 authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia
Browse files

xquartz: Remove support for SnowLeopard and earlier versions of macOS


Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
parent f699aac2
...@@ -1667,15 +1667,12 @@ handle_mouse: ...@@ -1667,15 +1667,12 @@ handle_mouse:
0.0, 0.0); 0.0, 0.0);
} }
#endif #endif
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_7 &&
// TODO: Change 1117 to NSAppKitVersionNumber10_7 when it is defined
if (NSAppKitVersionNumber >= 1117 &&
XQuartzScrollInDeviceDirection && XQuartzScrollInDeviceDirection &&
[e isDirectionInvertedFromDevice]) { [e isDirectionInvertedFromDevice]) {
deltaX *= -1; deltaX *= -1;
deltaY *= -1; deltaY *= -1;
} }
#endif
/* This hack is in place to better deal with "clicky" scroll wheels: /* This hack is in place to better deal with "clicky" scroll wheels:
* http://xquartz.macosforge.org/trac/ticket/562 * http://xquartz.macosforge.org/trac/ticket/562
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment