From 9d329a0fb17c1a7840408d329ee2e2a04d357387 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 --- 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 8b9b1f104..c0ec8ddb5 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -1541,8 +1541,7 @@ handle_mouse: } #endif - if (NSAppKitVersionNumber >= NSAppKitVersionNumber10_7 && - XQuartzScrollInDeviceDirection && + if (XQuartzScrollInDeviceDirection && [e isDirectionInvertedFromDevice]) { deltaX *= -1; deltaY *= -1;