mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-06-04 01:28:35 -04:00
Makes it possible to use in certain places that otherwise it couldn't be. Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
21 lines
535 B
C++
21 lines
535 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#include "shell.h"
|
|
#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";
|
|
}
|
|
}
|