Fixed sleeping monitors being excluded from list.

Closes #430.
master
Camilla Berglund ago%!(EXTRA string=10 years)
parent 1d7898b5ea
commit 29b40112c2
  1. 1
      README.md
  2. 3
      src/cocoa_monitor.m

@ -68,6 +68,7 @@ GLFW bundles a number of dependencies in the `deps/` directory.
- Bugfix: `glfwSetTime` silently accepted invalid values
- [Cocoa] Bugfix: `NSHighResolutionCapable` was not enabled for test and
example programs
- [Cocoa] Bugfix: Sleeping monitors were not included in the monitor list
- [Cocoa] Bugfix: `glfwSetWindowSize` did not change the video mode for full
screen windows
- [X11] Added support for Cygwin-X

@ -264,9 +264,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
{
int j;
if (CGDisplayIsAsleep(displays[i]))
continue;
CGDirectDisplayID screenDisplayID = CGDisplayMirrorsDisplay(displays[i]);
if (screenDisplayID == kCGNullDirectDisplay)
screenDisplayID = displays[i];

Loading…
Cancel
Save