summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-01-27 13:29:52 -0800
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-02-01 23:17:34 -0800
commit9bacf2d3d50c05b98a29c9ad60d5572c0f28c05b (patch)
tree7944c2ca27e4b586443e47264484e44bc3fd1696
parent993eb34655621a3f16c670bd1b355c6411e3a235 (diff)
xquartz: Remove support for SnowLeopard and earlier versions of macOS
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> (cherry picked from commit cc9cf6f085be6e8264f925a11d67a12ad47a042b)
-rw-r--r--hw/xquartz/X11Application.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index 10f61ce7a..081cfeca6 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -1635,15 +1635,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
*/