[PATCH 1/2] winemac.drv: Don't filter non active displays out.

Piotr Caban piotr at codeweavers.com
Mon Apr 12 10:55:19 CDT 2021


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 at codeweavers.com>
---
  dlls/winemac.drv/cocoa_display.m | 89 ++++++++++++++------------------
  1 file changed, 39 insertions(+), 50 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac.drv-Don-t-filter-non-active-displays-out.txt
Type: text/x-patch
Size: 4535 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210412/68d4000a/attachment.bin>


More information about the wine-devel mailing list