NSGL: Update current display for display link

This solution of one display link per window is far from ideal but is
still better than no solution.

As a side-effect this fixes swap interval breaking being ignored for
occluded windows on earlier versions of macOS.

Fixes #680.
Fixes #1337.
Related to #1417.
Fixes #1435.
This commit is contained in:
Camilla Löwy
2019-02-21 00:35:53 +01:00
parent f8bcc7e65c
commit 8d7e5cdb49
5 changed files with 23 additions and 9 deletions

View File

@@ -32,8 +32,6 @@
#include <math.h>
#include <IOKit/graphics/IOGraphicsLib.h>
#include <CoreVideo/CVBase.h>
#include <CoreVideo/CVDisplayLink.h>
#include <ApplicationServices/ApplicationServices.h>