Cocoa: Only create per-monitor display link once

The display link query is not specific to any particular display mode
and so only needs to be done once.

The next step is to replace the display link altogether by querying
IOKit directly, which is what the display link does.

(cherry picked from commit b4a8eb9b19)
This commit is contained in:
Camilla Löwy
2019-12-19 08:43:01 +01:00
committed by Camilla Löwy
parent c3b8afc5d6
commit 7c9d0081e3
2 changed files with 32 additions and 22 deletions
+1
View File
@@ -170,6 +170,7 @@ typedef struct _GLFWmonitorNS
CGDisplayModeRef previousMode;
uint32_t unitNumber;
id screen;
double fallbackRefreshRate;
} _GLFWmonitorNS;