[PATCH xserver 0/2] Add xdg-output support

Olivier Fourdan ofourdan at redhat.com
Thu Sep 7 15:43:15 UTC 2017


Hi,

This is actually the 3rd iteration of the xdg-output support patch for
Xwayland.

Changes in this iteration include obvious bug fixes (like binding to the
correct interface actually helps...) and other more important fixes like
waiting for both wl_output and xdg-output done events before actually
applying the output logical size.

This was tested with the xdg-output patches in mutter from GNOME bug:

    https://bugzilla.gnome.org/show_bug.cgi?id=787363

With fractional scaling, xrandr in Xwayland reports the logical size
whereas weston-info reports the wl_output size and rotation as expected.

As a corollary, using xdg-output in Xwayland allows us to take the
wl_output scale when computing the output size from Xwayland point of
view, so that it also works out of the box with weston and kwin. However,
merging this second patch in Xwayland without the support for xdg-output
in mutter would break mutter as the screen size would be wrong in
gnome-shell/mutter with Xwayland.

Cheers,
Olivier

Olivier Fourdan (2):
  xwayland: Add optional xdg-output support
  xwayland: apply output scale to monitor resolution

 configure.ac                  |   2 +-
 hw/xwayland/Makefile.am       |   9 +++-
 hw/xwayland/meson.build       |   2 +
 hw/xwayland/xwayland-output.c | 123 ++++++++++++++++++++++++++++++++++++++----
 hw/xwayland/xwayland.c        |   5 ++
 hw/xwayland/xwayland.h        |  10 +++-
 meson.build                   |   2 +-
 7 files changed, 139 insertions(+), 14 deletions(-)

-- 
2.13.5



More information about the wayland-devel mailing list