Commit db391c37 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Only consider active monitors for clone detection.

parent e4ff578b
...@@ -1746,14 +1746,15 @@ static BOOL update_display_cache_from_registry(void) ...@@ -1746,14 +1746,15 @@ static BOOL update_display_cache_from_registry(void)
if (adapter->dev.state_flags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) if (adapter->dev.state_flags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP)
{ {
if (!IsRectEmpty(&monitor->rc_monitor)) monitor->dev.state_flags |= DISPLAY_DEVICE_ACTIVE; if (!IsRectEmpty(&monitor->rc_monitor)) monitor->dev.state_flags |= DISPLAY_DEVICE_ACTIVE;
}
LIST_FOR_EACH_ENTRY(monitor2, &monitors, struct monitor, entry) LIST_FOR_EACH_ENTRY( monitor2, &monitors, struct monitor, entry )
{
if (EqualRect(&monitor2->rc_monitor, &monitor->rc_monitor))
{ {
monitor->is_clone = TRUE; if (!(monitor2->dev.state_flags & DISPLAY_DEVICE_ACTIVE)) continue;
break; if (EqualRect( &monitor2->rc_monitor, &monitor->rc_monitor ))
{
monitor->is_clone = TRUE;
break;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment