Use new xdt feature macros
This removes some boilerplate, and also has the side effect of avoiding linking to Wayland libs when Wayland support is disabled (ditto for X11).
Supersedes !21 (closed).
This removes some boilerplate, and also has the side effect of avoiding linking to Wayland libs when Wayland support is disabled (ditto for X11).
Supersedes !21 (closed).