[Backport to Xwayland 23.1] Backport fixes

Merged Olivier Fourdan requested to merge ofourdan/xserver:xwayland-23.1-backports into xwayland-23.1

This backports some fixes from master, namely:

  • commit 24171bb7 - xwayland: Include <sys/type.h> where needed
  • commit 76a329e5 - xwayland: fix error path when modifier is not supported
  • commit c6f2598a - xwayland: don't fall back to wl_drm with explicit modifier
  • commit d5dd3f3c - xwayland: Use MAP_PRIVATE for keymaps
  • commit 5a742ab8 - Add libdrm 2.4.109 requirement
  • commit 6f0b9dee - xwayland: use drmDevice to compare DRM devices
  • commit 21b3dad2 - Allow disabling the SHAPE extension at runtime
  • commit 08b0ea09 - xwayland/glamor/gbm: Only use modifier gbm API if explicit
  • commit af255b16 - xwayland/glamor/gbm: Initialize explicit buffer params in helper
  • commit 9bd83c02 - xwayland/glamor/gbm: Use helper for implicit buffer params too
  • commit 4e20d96e - xwayland/glamor: Track if a xwl_pixmap uses explicit modifiers
  • commit 1209a1bb - xwayland: Fix uninitialised value created by a stack allocation

This bumps the libdrm requirement to 2.4.109

Edited by Olivier Fourdan

Merge request reports