To make it possible for xwayland to fake mode setting to clients, we shouldn't use the legacy randr 1.0 api as it doesn't allow us to differentiate between xwl_outputs. We should use randr 1.2 hooks instead, which provide that functionality.
Created attachment 136831 [details] [review] use RandR 1.2 interface and enable mode setting This adds the RandR 1.2 interface to xwayland and allows modes advertised by the compositor to be set. RandR 1.2 will be needed to implement fake-mode-setting. As RandR 1.2 does not allow to set unregistered modes and xwayland only lists those send by the compositor, it's save to enable mode- setting already, as only compositors which send multiple modes are affected. Compositors should only send multiple modes if they can handle the resulting behaviour.
(In reply to Robert Mader from comment #1) > Created attachment 136831 [details] [review] [review] > use RandR 1.2 interface and enable mode setting > > This adds the RandR 1.2 interface to xwayland and allows modes > advertised by the compositor to be set. > > RandR 1.2 will be needed to implement fake-mode-setting. > > As RandR 1.2 does not allow to set unregistered modes and xwayland > only lists those send by the compositor, it's save to enable mode- > setting already, as only compositors which send multiple modes > are affected. > Compositors should only send multiple modes if they can handle > the resulting behaviour. I forgot to mention: this depends on https://patchwork.freedesktop.org/patch/191035/
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/712.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.