Update API for El Capitan+

Use NSAnimationContext where possible.
This commit is contained in:
Cody Russell
2017-07-18 14:54:11 -04:00
committed by Matthias Clasen
parent fc1f0b171c
commit 68b92cc6ef

View File

@@ -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 *