• Piotr Caban's avatar
    winemac.drv: Don't filter non active displays out. · 5400db15
    Piotr Caban authored
    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: 's avatarPiotr Caban <piotr@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    5400db15
cocoa_display.m 21.8 KB