winemac.drv: Don't filter non active displays out.
commit5400db15ca9983a06df2f5071705e0256e95e11e
authorPiotr Caban <piotr@codeweavers.com>
Mon, 12 Apr 2021 15:55:19 +0000 (12 17:55 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 12 Apr 2021 17:35:54 +0000 (12 19:35 +0200)
tree750842c7d9a79a3dc13c34d9ead21fbe9ad05583
parent129e5660e3588f4ccfd919870fb71497b61d3a0c
winemac.drv: Don't filter non active displays out.

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>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_display.m