diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-04-24 16:26:19 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-05-11 17:01:52 +0200 |
commit | ad2d461dec84b33a7fa0784776f3eee7bd6c55f4 (patch) | |
tree | 6b2139d081dad8b368a78eb355765d4204532ef7 /hw/xwin/ddraw.h | |
parent | 9a55c402aa803fb10e39ab4fd18a709d0cd06fd4 (diff) | |
download | xserver-ad2d461dec84b33a7fa0784776f3eee7bd6c55f4.tar.gz |
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 fallback to a simpler computation not doing any
rounding if that's the case.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1540
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'hw/xwin/ddraw.h')
0 files changed, 0 insertions, 0 deletions