Skip to content

Xwayland: Add "RANDR Emulation" property

Olivier Fourdan requested to merge ofourdan/xserver:randr-emulation into master

When RANDR is emulated as with Xwayland, the actual output configuration does not change as RANDR is emulated using viewports.

As a result, changes to the CRTC may be skipped, resulting in the configuration being (wrongly) assumed to be unchanged.

Add a new output property "RANDR Emulation" that the DDX can set to force RRCrtcSet() to reconfigure the CRTC regardless of the change.

Set the property "RANDR Emulation" on all Xwayland outputs to make sure the optimizations in RRCrtcSet() get skipped and Xwayland can receive and act upon the client request.

Signed-off-by: Olivier Fourdan ofourdan@redhat.com Closes: #1305 (closed)

This is a hack, I know and should be ashamed, but isn't it the case with this all XRandR emulation in Xwayland? Main benefit of this approach is to avoid breaking the API for something which very specific and and a bit of corner case. As a bonus, the output property can be used by X11 clients to tell whether XRandR is real or just emulated.

Merge request reports