[PATCH RFC xserver] xwayland: List all wl_output::mode(s) in xrandr

Pekka Paalanen ppaalanen at gmail.com
Wed Nov 29 14:50:12 UTC 2017


On Wed, 29 Nov 2017 15:26:58 +0100
Olivier Fourdan <ofourdan at redhat.com> wrote:

> Xwayland would only list the current wl_output mode in xrandr, even
> though multiple modes might be advertised by the Wayland compositor.
> 
> List all available modes listed by the Wayland compositor using
> wl_output::mode in XrandR.
> 
> Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
> ---
>  Note: this works best with weston which lists multiple modes, unlike
>        gnome-shell/mutter which advertises only the current mode in
>        wl_output::mode.
> 
>  hw/xwayland/xwayland-output.c | 87 ++++++++++++++++++++++++++++++++++++++++---
>  hw/xwayland/xwayland.h        | 12 ++++++
>  2 files changed, 93 insertions(+), 6 deletions(-)

Hi Olivier,

do you also plan to let Xwayland change the mode? If not, what's the
benefit of this?

My naive guess is that if apps or users don't see multiple modes in the
list, they are less likely to attempt to change it via RandR.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20171129/73f39233/attachment.sig>


More information about the wayland-devel mailing list