[PATCH] winex11.drv: Check that there are connected outputs before using XRandR 1.4.

Zhiyi Zhang zzhang at codeweavers.com
Tue Jan 5 01:05:38 CST 2021



On 1/5/21 12:41 AM, Henri Verbeet wrote:
> On Fri, 1 Jan 2021 at 06:01, Zhiyi Zhang <zzhang at codeweavers.com> wrote:
>> On headless systems, Wine can still run through a VNC connection even though no outputs are
>> connected. Fallback to using the Xinerama display device handler in this case to report at least
>> one monitor.
>>
>> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49500
> Mostly out of curiosity, how does that work on Windows? Also, what
> happens if the display is removed after the application has already
> been started?
I haven't tried it on real hardware. But I am guessing without a connected output, a VNC client/server
won't be able to display anything on Windows. Using Remote Desktop service, Windows will report
an emulated display using remote desktop client dimensions.

If the only display is removed after the application has already started, Wine will send a WM_DISPLAYCHANGE
message with a fallback emulated display of size 640x480 and report the the real size once the display is reconnected.

Thanks,
Zhiyi



More information about the wine-devel mailing list