@@ -38,7 +38,7 @@ gudev_req = '>= 232'
3838
3939# wayland version requirements
4040wayland_server_req = ' >= 1.20'
41- wayland_protocols_req = ' >= 1.23 '
41+ wayland_protocols_req = ' >= 1.36 '
4242
4343# native backend version requirements
4444libinput_req = ' >= 1.19.0'
@@ -376,6 +376,7 @@ if cc.has_header_symbol('sys/prctl.h', 'prctl')
376376endif
377377
378378have_xwayland_initfd = false
379+ have_xwayland_byte_swapped_clients = false
379380if have_wayland
380381 xwayland_dep = dependency (' xwayland' , required : false )
381382
@@ -416,6 +417,16 @@ if have_wayland
416417 if (have_xwayland_initfd)
417418 cdata.set(' HAVE_XWAYLAND_INITFD' , 1 )
418419 endif
420+
421+ # For Xwayland +/-byteswappedclients usage
422+ if xwayland_dep.found()
423+ have_xwayland_byte_swapped_clients = xwayland_dep.get_variable (' have_byteswappedclients' ,
424+ default_value : ' false' ) == ' true'
425+ endif
426+
427+ if (have_xwayland_byte_swapped_clients)
428+ cdata.set(' HAVE_XWAYLAND_BYTE_SWAPPED_CLIENTS' , 1 )
429+ endif
419430endif
420431
421432#xwayland_grab_default_access_rules = get_option('xwayland_grab_default_access_rules')
@@ -465,19 +476,20 @@ output = [
465476 '' ,
466477 ' Options:' ,
467478 '' ,
468- ' Wayland.................. ' + have_wayland.to_string(),
469- ' Wayland EGLStream........ ' + have_wayland_eglstream.to_string(),
470- ' Native Backend........... ' + have_native_backend.to_string(),
471- ' EGL Device............... ' + have_egl_device.to_string(),
472- ' Default driver........... ' + default_driver,
473- ' Remote desktop........... ' + have_remote_desktop.to_string(),
474- ' gudev.................... ' + have_libgudev.to_string(),
475- ' Wacom.................... ' + have_libwacom.to_string(),
476- ' SM....................... ' + have_sm.to_string(),
477- ' Startup notification..... ' + have_startup_notification.to_string(),
478- ' Introspection............ ' + have_introspection.to_string(),
479- ' Profiler................. ' + have_profiler.to_string(),
480- ' Xwayland initfd.......... ' + have_xwayland_initfd.to_string(),
479+ ' Wayland.......................... ' + have_wayland.to_string(),
480+ ' Wayland EGLStream................ ' + have_wayland_eglstream.to_string(),
481+ ' Native Backend................... ' + have_native_backend.to_string(),
482+ ' EGL Device....................... ' + have_egl_device.to_string(),
483+ ' Default driver................... ' + default_driver,
484+ ' Remote desktop................... ' + have_remote_desktop.to_string(),
485+ ' gudev............................ ' + have_libgudev.to_string(),
486+ ' Wacom............................ ' + have_libwacom.to_string(),
487+ ' SM............................... ' + have_sm.to_string(),
488+ ' Startup notification............. ' + have_startup_notification.to_string(),
489+ ' Introspection.................... ' + have_introspection.to_string(),
490+ ' Profiler......................... ' + have_profiler.to_string(),
491+ ' Xwayland initfd.................. ' + have_xwayland_initfd.to_string(),
492+ ' Xwayland byte-swapped clients.... ' + have_xwayland_byte_swapped_clients.to_string(),
481493 '' ,
482494 ' Tests:' ,
483495 '' ,
0 commit comments