mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2026-08-28 21:06:58 -04:00
it's not needed since Qt 6.5 and can potentially leak the environment variable.
25 lines
599 B
C++
25 lines
599 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#include "shell.h"
|
|
|
|
#if LAYERSHELLQTINTERFACE_BUILD_DEPRECATED_SINCE(6, 6)
|
|
|
|
#include <QByteArray>
|
|
#include <layershellqt_logging.h>
|
|
#include <qglobal.h>
|
|
|
|
using namespace LayerShellQt;
|
|
|
|
void Shell::useLayerShell()
|
|
{
|
|
const bool ret = qputenv("QT_WAYLAND_SHELL_INTEGRATION", "layer-shell");
|
|
if (!ret) {
|
|
qCDebug(LAYERSHELLQT) << "Unable to set QT_WAYLAND_SHELL_INTEGRATION=layer-shell";
|
|
}
|
|
}
|
|
#endif
|