On Windows 10 the DISPLAY_DEVICE_ACTIVE flag is set even if monitor is in power saving mode or switched off. Monitors without DISPLAY_DEVICE_ACTIVE are only reported when display is disabled. This doesn't match with CGDisplayIsActive function.
Current code causes rendering problems when native .NET is used. When monitors are updated when in power saving mode (e.g. due to race on machine wake-up) we might end up with no monitors being enumerated by EnumDisplayMonitors.
Signed-off-by: Piotr Caban piotr@codeweavers.com --- dlls/winemac.drv/cocoa_display.m | 89 ++++++++++++++------------------ 1 file changed, 39 insertions(+), 50 deletions(-)