Ticket #48516: patch-qcocoacursor.mm.diff
File patch-qcocoacursor.mm.diff, 645 bytes (added by eirnym (Eir Nym), 9 years ago) |
---|
-
qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
old new 73 73 pos.x = position.x(); 74 74 pos.y = position.y(); 75 75 76 CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0); 77 CGEventPost(kCGHIDEventTap, e); 78 CFRelease(e); 76 CGEventRef e = CGEventCreateMouseEvent(NULL, kCGEventMouseMoved, pos, kCGMouseButtonLeft); 77 if (e != NULL) { 78 CGEventPost(kCGHIDEventTap, e); 79 CFRelease(e); 80 } 79 81 } 80 82 81 83 NSCursor *QCocoaCursor::convertCursor(QCursor * cursor)