xserver/hw
Olivier Fourdan 9d2cc63a9a xwayland: Do not round non-standard modes
Currently, Xwayland uses libxcvt to generate the mode info and then
passes that to RRModeGet() to generate a RRMode.

However, libxcvt may round down the width to match the horizontal
granularity (8), and that's a problem when the Wayland compositor is
running a non-standard size (like, e.g. running nested with a custom
size) because XRandR would report a width smaller than the actual size.

To avoid that, check whether the CVT computed size differs from the
expected size, and simply fix the hdisplay/vdisplay to match the given
size if that's the case.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1540
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1549
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit ad2d461dec)
(cherry picked from commit 2713383548)
(cherry picked from commit 814a04927d)
2023-06-01 10:27:39 +02:00
..
vfb Don't install Xvfb 2023-02-17 10:13:34 +00:00
xwayland xwayland: Do not round non-standard modes 2023-06-01 10:27:39 +02:00
meson.build Drop Xephyr / kdrive DDX 2023-02-17 10:13:34 +00:00