From cc9cf6f085be6e8264f925a11d67a12ad47a042b Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Wed, 27 Jan 2021 13:29:52 -0800 Subject: [PATCH] xquartz: Remove support for SnowLeopard and earlier versions of macOS Signed-off-by: Jeremy Huddleston Sequoia --- hw/xquartz/X11Application.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 72a8c95f7..eb089b72d 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -1667,15 +1667,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 */