From 8890c44a75304097667ac7d42e83e2d78b105cb5 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Sun, 21 Feb 2021 21:49:58 -0800 Subject: [PATCH] xquartz: Remove a check for NSAppKitVersionNumber >= NSAppKitVersionNumber10_7 This check is always true on our supported systems. Signed-off-by: Jeremy Huddleston Sequoia (cherry picked from commit 5ae47a9d579e8cb0fbe938455faea53ed75d7098) --- hw/xquartz/X11Application.m | 3 +-- 1 file changed, 1 insertion(+), 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;