Xwayland: add DRM leasing support

Xaver Hugl requested to merge Zamundaaa/xserver:drm-lease into master

I rebased !248 (closed) and updated it to the latest version of the protocol.

Things left to do:

  • support for multiple DRM devices
  • Xwayland crashes when KWin starts in RRSendConfigNotify because pScreen->root is null. I assume that the problem is that the connectors get offered at startup, as delaying the offer on the compositor side avoids the crash
  • Xwayland also crashes when starting SteamVR
  • drmModeGetConnector fails when the connector is withdrawn and offered again
Edited by Xaver Hugl

Merge request reports