xwayland: Add fake output modes to xrandr output mode lists

Graphics / X.Org / X.Org Server - Hans de Goede [redhat.com] - 12 October 2019 10:19 EDT

This is a preparation patch for adding support for apps which want to change the resolution when they go fullscreen because they are hardcoded to render at a specific resolution, e.g. 640x480.

Follow up patches will fake the mode-switch these apps want by using WPviewport to scale there pixmap to cover the entire output.

0d656d796 xwayland: Add fake output modes to xrandr output mode lists
hw/xwayland/xwayland-output.c | 112 +++++++++++++++++++++++++++++++++++++++---
hw/xwayland/xwayland.c | 17 +++++++
hw/xwayland/xwayland.h | 1 +
3 files changed, 124 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share