Tim Clem : winemac.drv: Remove extraneous CGEventTapIsEnabled check.

Alexandre Julliard julliard at winehq.org
Wed Oct 20 15:58:42 CDT 2021


Module: wine
Branch: master
Commit: 9913f2786226ace3f586c07ff1ced9436cd0895d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9913f2786226ace3f586c07ff1ced9436cd0895d

Author: Tim Clem <tclem at codeweavers.com>
Date:   Tue Oct 19 14:21:13 2021 -0700

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 at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winemac.drv/cocoa_app.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/winemac.drv/cocoa_app.m b/dlls/winemac.drv/cocoa_app.m
index ff8f15553bb..c4c745ff732 100644
--- a/dlls/winemac.drv/cocoa_app.m
+++ b/dlls/winemac.drv/cocoa_app.m
@@ -1473,8 +1473,7 @@ static NSString* WineLocalizedString(unsigned int stringID)
         if (!cursorClippingEventTap && ![self installEventTap])
             return FALSE;
 
-        if (clippingCursor && CGRectEqualToRect(rect, cursorClipRect) &&
-            CGEventTapIsEnabled(cursorClippingEventTap))
+        if (clippingCursor && CGRectEqualToRect(rect, cursorClipRect))
             return TRUE;
 
         err = CGAssociateMouseAndMouseCursorPosition(false);




More information about the wine-cvs mailing list