xwayland: Use RandR 1.2 interface (rev 2)

Graphics / X.Org / X.Org Server - Robert Mader [posteo.de] - 12 October 2019 10:19 EDT

This adds the RandR 1.2 interface to xwayland and allows modes advertised by the compositor to be set in an undistructive manner.

With this patch, applications that try to set the resolution will usually succeed and work while other apps using the same xwayland instance are not affected at all.

The RandR 1.2 interface will be needed to implement fake-mode-setting and already makes applications work much cleaner and predictive when a mode was set.

[hdegoede@redhat.com: Make crtc_set only succeed if the mode matches the desktop resolution]

e89872f51 xwayland: Use RandR 1.2 interface (rev 2)
hw/xwayland/xwayland-output.c | 81 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)

Upstream: cgit.freedesktop.org

  • Share