From 6d0c6ac4e81bfb4369e7741491a33f21c36cb84f Mon Sep 17 00:00:00 2001 From: Christopher Nielsen Date: Fri, 12 May 2023 17:25:24 -0400 Subject: [PATCH] gdkdisplaylinksource: use GDK_QUARTZ_APPLICATION_DEFINED, rather than NSEventTypeApplicationDefined Part-of: --- gdk/quartz/gdkdisplaylinksource.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk/quartz/gdkdisplaylinksource.c b/gdk/quartz/gdkdisplaylinksource.c index b59c121945a..f78d753bd11 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 -- GitLab