https://bugs.winehq.org/show_bug.cgi?id=57610
--- Comment #25 from Rémi Bernon rbernon@codeweavers.com --- Created attachment 77797 --> https://bugs.winehq.org/attachment.cgi?id=77797 Tentative fix
To fix this within the code freeze, I think the attached patch could perhaps do the trick. As XRRGetOutputPrimary seems unreliable, calling it only once per enumeration should make things consistent enough.