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 <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2025-10-27 12:34:10 +02:00 committed by Pekka Paalanen
parent f4ba4f49bb
commit 3bd0367970
2 changed files with 16 additions and 3 deletions

View file

@ -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

View file

@ -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',