mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-11 20:01:21 +00:00
The deb and rpm only recommend the X11 libraries, and the release tarball doesn't install them. When the display-server choice (#2184) or WORDCRAFT_WAYLAND=0 asked for XWayland without them, the app failed to start: winit panicked in xkbcommon-dl without libxkbcommon-x11 (seen on Fedora 44 and Ubuntu 26.04). uses_x11 now also takes a check of the libraries winit's X11 backend opens (libX11, libXcursor, libX11-xcb, libXi, libxkbcommon-x11), asked only when X11 would be forced. If any is missing, X11 isn't forced and the log line names them. The packages now also recommend libX11-xcb and libxkbcommon-x11, and the README lists the libraries XWayland needs. Tests: missing_x11_libraries_leave_the_app_on_wayland (every way of asking for X11, and that asking for Wayland doesn't run the check). Co-authored-by: bmh129 <11478682+bmh129@users.noreply.github.com>