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  
    8181    pos.x = position.x();
    8282    pos.y = position.y();
    8383
    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    }
    8789}
    8890
    8991NSCursor *QCocoaCursor::convertCursor(QCursor * cursor)