From: Cody Russell Date: Tue, 18 Jul 2017 18:54:11 +0000 (-0400) Subject: Update API for El Capitan+ X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~469 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=68b92cc6ef6f4276f4529ce49be2febdb78db06b;p=gtk%2B3.0.git Update API for El Capitan+ Use NSAnimationContext where possible. --- diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 6878e52d7b..4ffbae047d 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -423,7 +423,14 @@ _gdk_quartz_display_before_process_all_updates (GdkDisplay *display) { in_process_all_updates = TRUE; - NSDisableScreenUpdates (); + if (gdk_quartz_osx_version () >= GDK_OSX_EL_CAPITAN) + { + [NSAnimationContext endGrouping]; + } + else + { + NSDisableScreenUpdates (); + } } void @@ -453,7 +460,14 @@ _gdk_quartz_display_after_process_all_updates (GdkDisplay *display) in_process_all_updates = FALSE; - NSEnableScreenUpdates (); + if (gdk_quartz_osx_version() >= GDK_OSX_EL_CAPITAN) + { + [NSAnimationContext beginGrouping]; + } + else + { + NSEnableScreenUpdates (); + } } static const gchar *