From 45e2ca5411a88889d74cc514c1d51b4d1768864e Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 12 Jun 2023 14:19:29 -0500 Subject: wayland: bump required version to 1.20 This lets us remove some ifdefs. --- meson.build | 4 ++-- video/out/wayland_common.c | 8 -------- wscript | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index ed0b6d84a3..2ed0c0c926 100644 --- a/meson.build +++ b/meson.build @@ -978,8 +978,8 @@ if features['d3d11'] endif wayland = { - 'deps': [dependency('wayland-client', version: '>= 1.15.0', required: get_option('wayland')), - dependency('wayland-cursor', version: '>= 1.15.0', required: get_option('wayland')), + 'deps': [dependency('wayland-client', version: '>= 1.20.0', required: get_option('wayland')), + dependency('wayland-cursor', version: '>= 1.20.0', required: get_option('wayland')), dependency('wayland-protocols', version: '>= 1.15', required: get_option('wayland')), dependency('xkbcommon', version: '>= 0.3.0', required: get_option('wayland'))], 'header': cc.has_header('linux/input-event-codes.h', required: get_option('wayland')), diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index cfe641fe08..618ec39f0e 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -51,10 +51,6 @@ #include "generated/wayland/fractional-scale-v1.h" #endif -#if WAYLAND_VERSION_MAJOR > 1 || WAYLAND_VERSION_MINOR >= 20 -#define HAVE_WAYLAND_1_20 -#endif - #if WAYLAND_VERSION_MAJOR > 1 || WAYLAND_VERSION_MINOR >= 22 #define HAVE_WAYLAND_1_22 #endif @@ -722,7 +718,6 @@ static void output_handle_scale(void *data, struct wl_output *wl_output, output->scale = factor; } -#ifdef HAVE_WAYLAND_1_20 static void output_handle_name(void *data, struct wl_output *wl_output, const char *name) { @@ -734,17 +729,14 @@ static void output_handle_description(void *data, struct wl_output *wl_output, const char *description) { } -#endif static const struct wl_output_listener output_listener = { output_handle_geometry, output_handle_mode, output_handle_done, output_handle_scale, -#ifdef HAVE_WAYLAND_1_20 output_handle_name, output_handle_description, -#endif }; static void surface_handle_enter(void *data, struct wl_surface *wl_surface, diff --git a/wscript b/wscript index d98bfd1758..adc64f1535 100644 --- a/wscript +++ b/wscript @@ -541,8 +541,8 @@ video_output_features = [ 'name': '--wayland', 'desc': 'Wayland', 'deps': 'wayland-protocols && wayland-scanner && linux-input-event-codes', - 'func': check_pkg_config('wayland-client', '>= 1.15.0', - 'wayland-cursor', '>= 1.15.0', + 'func': check_pkg_config('wayland-client', '>= 1.20.0', + 'wayland-cursor', '>= 1.20.0', 'xkbcommon', '>= 0.3.0'), } , { 'name': 'wayland-protocols-1-24', -- cgit v1.2.3