From 51ccc9ed8cab7bf1e3ea293328f2e382eceaf273 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 26 Nov 2016 10:26:32 -0800 Subject: [PATCH] if the tap is explicitly disabled by code or by another program, let it remain disabled! this is different than the automatic "event tap was too slow therefore we stopped processing it" timeout which we want to re-enable after. --- src/video/cocoa/SDL_cocoamousetap.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoamousetap.m b/src/video/cocoa/SDL_cocoamousetap.m index 4f116de8d64fb..0b5b730e987fb 100644 --- a/src/video/cocoa/SDL_cocoamousetap.m +++ b/src/video/cocoa/SDL_cocoamousetap.m @@ -69,11 +69,11 @@ switch (type) { case kCGEventTapDisabledByTimeout: - case kCGEventTapDisabledByUserInput: { CGEventTapEnable(tapdata->tap, true); return NULL; } + case kCGEventTapDisabledByUserInput: default: break; }