xwayland: require xcb-xfixes 1.15

xcb-xfixes 1.15 was released back in 2022. Let's simplify our build
setup by requiring it.
This commit is contained in:
Simon Ser 2025-05-01 18:32:19 +02:00 committed by Kenny Levinsen
parent 37992cf3b8
commit 221b37355f
3 changed files with 11 additions and 18 deletions

View file

@ -1,13 +1,13 @@
xwayland_libs = []
xwayland_required = [
'xcb',
'xcb-composite',
'xcb-ewmh',
'xcb-icccm',
'xcb-render',
'xcb-res',
'xcb-xfixes',
]
xwayland_required = {
'xcb': [],
'xcb-composite': [],
'xcb-ewmh': [],
'xcb-icccm': [],
'xcb-render': [],
'xcb-res': [],
'xcb-xfixes': '>=1.15',
}
xwayland_optional = {
'xcb-errors': 'Required for printing X11 errors.',
}
@ -37,8 +37,9 @@ if not xwayland.found()
subdir_done()
endif
foreach lib : xwayland_required
foreach lib, version : xwayland_required
dep = dependency(lib,
version: version,
required: get_option('xwayland'),
not_found_message: '\n'.join(msg).format(lib),
)
@ -93,6 +94,3 @@ wlr_files += files(
)
wlr_deps += xwayland_libs
features += { 'xwayland': true }
have = cc.has_function('xcb_xfixes_set_client_disconnect_mode', dependencies: xwayland_libs)
internal_config.set10('HAVE_XCB_XFIXES_SET_CLIENT_DISCONNECT_MODE', have)