Ticket #49074: patch-qcocoacursor.diff
File patch-qcocoacursor.diff, 645 bytes (added by casey.webster@…, 9 years ago) |
---|
-
qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
old new 81 81 pos.x = position.x(); 82 82 pos.y = position.y(); 83 83 84 CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0); 85 CGEventPost(kCGHIDEventTap, e); 86 CFRelease(e); 84 CGEventRef e = CGEventCreateMouseEvent(NULL, kCGEventMouseMoved, pos, kCGMouseButtonLeft); 85 if (e != NULL) { 86 CGEventPost(kCGHIDEventTap, e); 87 CFRelease(e); 88 } 87 89 } 88 90 89 91 NSCursor *QCocoaCursor::convertCursor(QCursor * cursor)