From 29b40112c234c3021648ea42a5e74cc122ba08b4 Mon Sep 17 00:00:00 2001
From: Camilla Berglund <elmindreda@elmindreda.org>
Date: Thu, 19 Mar 2015 16:20:03 +0100
Subject: [PATCH] Fixed sleeping monitors being excluded from list.

Closes #430.
---
 README.md           | 1 +
 src/cocoa_monitor.m | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 2342dd5c..338b349e 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/src/cocoa_monitor.m b/src/cocoa_monitor.m
index 9b8d3b0f..f75347db 100644
--- a/src/cocoa_monitor.m
+++ b/src/cocoa_monitor.m
@@ -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];