diff --git a/xwayland/meson.build b/xwayland/meson.build index 08ad7a392..81cb018eb 100644 --- a/xwayland/meson.build +++ b/xwayland/meson.build @@ -20,7 +20,19 @@ if not get_option('xwayland').disabled() msg += 'Required for Xwayland support.' endif -xwayland = dependency('xwayland', required: get_option('xwayland')) +xwayland = dependency( + 'xwayland', + required: get_option('xwayland'), + fallback: 'xserver', + default_options: [ + 'werror=false', + 'xorg=false', + 'xephyr=false', + 'xwayland=true', + 'xnest=false', + 'xvfb=false', + ], +) if not xwayland.found() subdir_done() endif