@@ -376,6 +376,7 @@ if cc.has_header_symbol('sys/prctl.h', 'prctl')
376
376
endif
377
377
378
378
have_xwayland_initfd = false
379
+ have_xwayland_byte_swapped_clients = false
379
380
if have_wayland
380
381
xwayland_dep = dependency (' xwayland' , required : false )
381
382
@@ -416,6 +417,16 @@ if have_wayland
416
417
if (have_xwayland_initfd)
417
418
cdata.set(' HAVE_XWAYLAND_INITFD' , 1 )
418
419
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
419
430
endif
420
431
421
432
#xwayland_grab_default_access_rules = get_option('xwayland_grab_default_access_rules')
@@ -465,19 +476,20 @@ output = [
465
476
'' ,
466
477
' Options:' ,
467
478
'' ,
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(),
481
493
'' ,
482
494
' Tests:' ,
483
495
'' ,
0 commit comments