diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2021-02-21 21:49:58 -0800 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2021-02-22 09:22:32 -0800 |
commit | 8890c44a75304097667ac7d42e83e2d78b105cb5 (patch) | |
tree | cd7fc41acfe5f193011a1876b8825b7c7bb7d8cd | |
parent | 3c3680c366f78168e828e4a35d41a048c6e2bb54 (diff) | |
download | xserver-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.m | 3 |
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; |