desktop: Fix Xwayland build 94/29394/1 pike
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 17 Aug 2023 11:59:24 +0000 (14:59 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 8 Nov 2023 16:07:40 +0000 (18:07 +0200)
commit0daece43068b1d22d1ad21b2ed3dc383f73fc2e1
treea86cbe567ffd488677dd537d3d5d1b815e5f58b2
parent8c9f4f054a43bb9625872622c46b5ae2a59a1c98
desktop: Fix Xwayland build

Turns out weston doesn't install xwayland-api header if Xwayland is not
installed, which is a shame, and should be rectified. Meanwhile, let's
guard access to the header and the API that the header exports.

Bug-AGL: SPEC-4782
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I77638b263483628f8cc7a3dcbd08c8947db1d86b
(cherry picked from commit a68408367cf5e254d981e1d43ba261b9aade6166)
src/desktop.c