Ticket #48516: patch-qcocoacursor.mm.diff

File patch-qcocoacursor.mm.diff, 645 bytes (added by eirnym (Eir Nym), 9 years ago)

patch for qcocoacursor.mm

  • qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm

    old new  
    7373    pos.x = position.x();
    7474    pos.y = position.y();
    7575
    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    }
    7981}
    8082
    8183NSCursor *QCocoaCursor::convertCursor(QCursor * cursor)