  
  libglib_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
 diff --git a/glib/gmain.c b/glib/gmain.c
-index 4f90574..9998be7 100644
+index 4f90574..c537af4 100644
 --- a/glib/gmain.c
 +++ b/glib/gmain.c
 @@ -72,6 +72,10 @@

+
+  if (event &&
+      [event type] == NSApplicationDefined &&
+      [event subtype] == GMAIN_COCOA_EVENT_SUBTYPE_EVENTLOOP)
+    {
+      /* Just used to wake us up; if an event and a FD arrived at the same
+       * time; could have come from a previous iteration in some cases,

 #ifndef G_OS_WIN32
 
 
@@ -3267,6 +3350,35 @@ g_main_context_acquire (GMainContext *context)
     {
       context->owner = self;
       g_assert (context->owner_count == 0);
