xserver/hw
Olivier Fourdan 8e8c0e54c4 xwayland: Validate command line options separately
The design document hw/xfree86/doc/ddxDesign.xml states that:

 | AddScreen() should only fail because of programming errors or
 | failure to allocate resources (like memory).
 | All configuration problems should be detected BEFORE this point.

Different command line options errors are detected in xwl_screen_init()
and can cause AddScreen() to fail, which is not compliant with the
specification.

Move all command line checks out of xwl_screen_init() in a separate
function that will take care of verifying the command line options and
bail out with meaningful error messages.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1745>
2026-04-28 07:38:18 +00:00
..
kdrive treewide: fix typos 2026-03-14 16:52:19 +00:00
vfb vfb: use snprintf when writing XWD window name 2026-04-15 23:38:29 +00:00
xfree86 modesetting: add NULL check for drmModeObjectGetProperties in VRR check 2026-04-28 02:37:43 +00:00
xnest Xnest: use authorative declarations from X11/XKBlib.h 2026-01-25 10:40:01 -08:00
xquartz meson: replace join_paths() with / operator 2026-03-28 10:02:41 -07:00
xwayland xwayland: Validate command line options separately 2026-04-28 07:38:18 +00:00
xwin meson: replace join_paths() with / operator 2026-03-28 10:02:41 -07:00
meson.build meson.build: print a summary of the DDX to build 2026-01-25 10:40:01 -08:00