summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-02-21 21:49:58 -0800
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2021-02-22 09:22:32 -0800
commit8890c44a75304097667ac7d42e83e2d78b105cb5 (patch)
treecd7fc41acfe5f193011a1876b8825b7c7bb7d8cd
parent3c3680c366f78168e828e4a35d41a048c6e2bb54 (diff)
downloadxserver-8890c44a75304097667ac7d42e83e2d78b105cb5.tar.gz
xquartz: Remove a check for NSAppKitVersionNumber >= NSAppKitVersionNumber10_7
This check is always true on our supported systems. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> (cherry picked from commit 5ae47a9d579e8cb0fbe938455faea53ed75d7098)
-rw-r--r--hw/xquartz/X11Application.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index 7dac197dd..877981800 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -1528,8 +1528,7 @@ handle_mouse:
}
#endif
- if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_7 &&
- XQuartzScrollInDeviceDirection &&
+ if (XQuartzScrollInDeviceDirection &&
[e isDirectionInvertedFromDevice]) {
deltaX *= -1;
deltaY *= -1;