diff --git a/gdk/quartz/gdkdisplaylinksource.c b/gdk/quartz/gdkdisplaylinksource.c index b59c121945a12c440c22ae75c7bf568ab044037c..f78d753bd11013dea228319da020659f17faa17e 100644 --- a/gdk/quartz/gdkdisplaylinksource.c +++ b/gdk/quartz/gdkdisplaylinksource.c @@ -26,6 +26,12 @@ #include "gdkinternal-quartz.h" #include "gdkdisplaylinksource.h" +#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200 +#define GDK_QUARTZ_APPLICATION_DEFINED NSApplicationDefined +#else +#define GDK_QUARTZ_APPLICATION_DEFINED NSEventTypeApplicationDefined +#endif + static gint64 host_to_frame_clock_time (gint64 host_time); static gboolean @@ -126,7 +132,7 @@ gdk_display_link_source_frame_cb (CVDisplayLinkRef display_link, * the select thread which would then send this message as * well. Lots of extra work. */ - event = [NSEvent otherEventWithType: NSEventTypeApplicationDefined + event = [NSEvent otherEventWithType: GDK_QUARTZ_APPLICATION_DEFINED location: NSZeroPoint modifierFlags: 0 timestamp: 0