Ticket #52468: patch-gdkevents-quartz_NSTypes-10_5_compat.diff

File patch-gdkevents-quartz_NSTypes-10_5_compat.diff, 782 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago)

Fixes in Leopard unknown NS Event Types

  • gdk/quartz/gdkevents-quartz.c

    old new  
    353353
    354354        return mask;
    355355      }
     356#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
    356357    case NSEventTypeMagnify:
    357358    case NSEventTypeRotate:
    358359      return GDK_TOUCHPAD_GESTURE_MASK;
     360#endif
    359361    case NSKeyDown:
    360362    case NSKeyUp:
    361363    case NSFlagsChanged:
     
    832834    case NSLeftMouseDragged:
    833835    case NSRightMouseDragged:
    834836    case NSOtherMouseDragged:
     837#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
    835838    case NSEventTypeMagnify:
    836839    case NSEventTypeRotate:
    837840      return find_toplevel_for_mouse_event (nsevent, x, y);
     841#endif
    838842     
    839843    case NSMouseEntered:
    840844    case NSMouseExited: