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.
This commit is contained in:
Camilla Löwy
2019-12-19 08:43:01 +01:00
parent 28773a069e
commit b4a8eb9b19
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;