Client: Deprecate xdg-shell-v5 and wl-shell
[ChangeLog][QPA plugin] Deprecated the shell integrations for xdg-shell-unstable-v5 and wl-shell. The stable version of xdg-shell should be used instead. Task-number: QTBUG-68838 Change-Id: Iab89059ec13efc2f72c3317a26439d7683e03e79 Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
This commit is contained in:
parent
db0838a117
commit
b70ab36e1c
@ -49,6 +49,10 @@ namespace QtWaylandClient {
|
||||
|
||||
bool QWaylandWlShellIntegration::initialize(QWaylandDisplay *display)
|
||||
{
|
||||
qCWarning(lcQpaWayland) << "\"wl-shell\" is a deprecated shell extension, prefer using"
|
||||
<< "\"xdg-shell-v6\" or \"xdg-shell\" if supported by the compositor"
|
||||
<< "by setting the environment variable QT_WAYLAND_SHELL_INTEGRATION";
|
||||
|
||||
Q_FOREACH (QWaylandDisplay::RegistryGlobal global, display->globals()) {
|
||||
if (global.interface == QLatin1String("wl_shell")) {
|
||||
m_wlShell = new QtWayland::wl_shell(display->wl_registry(), global.id, 1);
|
||||
|
@ -51,6 +51,10 @@ namespace QtWaylandClient {
|
||||
|
||||
bool QWaylandXdgShellV5Integration::initialize(QWaylandDisplay *display)
|
||||
{
|
||||
qCWarning(lcQpaWayland) << "\"xdg-shell-v5\" is a deprecated shell extension, prefer using"
|
||||
<< "\"xdg-shell-v6\" or \"xdg-shell\" if supported by the compositor"
|
||||
<< "by setting the environment variable QT_WAYLAND_SHELL_INTEGRATION";
|
||||
|
||||
Q_FOREACH (QWaylandDisplay::RegistryGlobal global, display->globals()) {
|
||||
if (global.interface == QLatin1String("xdg_shell")) {
|
||||
m_xdgShell.reset(new QWaylandXdgShellV5(display->wl_registry(), global.id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user