winemac.drv: Remove extraneous CGEventTapIsEnabled check.

We no longer enable or disable the event tap manually, and it re-enables
itself on kCGEventTapDisabledByTimeout, so this check is not needed.

Signed-off-by: Tim Clem <tclem@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Tim Clem 2021-10-19 14:21:13 -07:00 committed by Alexandre Julliard
parent 5e543fee7a
commit 9913f27862
1 changed files with 1 additions and 2 deletions

View File

@ -1473,8 +1473,7 @@ - (BOOL) startClippingCursor:(CGRect)rect
if (!cursorClippingEventTap && ![self installEventTap])
return FALSE;
if (clippingCursor && CGRectEqualToRect(rect, cursorClipRect) &&
CGEventTapIsEnabled(cursorClippingEventTap))
if (clippingCursor && CGRectEqualToRect(rect, cursorClipRect))
return TRUE;
err = CGAssociateMouseAndMouseCursorPosition(false);