From 3bd03679701f8167fbba3a09b4e5dd65ca9cdabd Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 27 Oct 2025 12:34:10 +0200 Subject: [PATCH] xdg-shell-v6: Deprecate in favor of xdg-shell stable For obvious reasons, use xdg-shell stable, most of the issues resolves adding the same functionality or fixing bugs as we do it with the stable xdg-shell version. Deprecate it prior to removal to warn users about using it. Signed-off-by: Marius Vlad --- libweston/desktop/meson.build | 12 +++++++++--- meson_options.txt | 7 +++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libweston/desktop/meson.build b/libweston/desktop/meson.build index 4588ad106..7117877d8 100644 --- a/libweston/desktop/meson.build +++ b/libweston/desktop/meson.build @@ -5,12 +5,18 @@ srcs_libweston += files([ 'surface.c', 'xwayland.c', 'xdg-shell.c', - 'xdg-shell-v6.c', ]) srcs_libweston += [ - xdg_shell_unstable_v6_server_protocol_h, - xdg_shell_unstable_v6_protocol_c, xdg_shell_server_protocol_h, xdg_shell_protocol_c, ] + +if get_option('deprecated-xdg-shell-v6-unstable') + warning('deprecated-xdg-shell-v6-unstable enabled. This will be removed in future versions.') + srcs_libweston += files([ 'xdg-shell-v6.c' ]) + srcs_libweston += [ + xdg_shell_unstable_v6_server_protocol_h, + xdg_shell_unstable_v6_protocol_c + ] +endif diff --git a/meson_options.txt b/meson_options.txt index 0ebaee5c5..31b8ade4d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -132,6 +132,13 @@ option( description: 'Weston desktop shell: default helper client selection' ) +option( + 'deprecated-xdg-shell-v6-unstable', + type: 'boolean', + value: false, + description: 'DEPRECATED: xdg-shell v6 unstable support. Use xdg-shell stable' +) + option( 'color-management-lcms', type: 'boolean',