2021-04-01 00:28:01 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "shell.h"
|
|
|
|
#include <QByteArray>
|
2021-04-06 11:39:27 +00:00
|
|
|
#include <qglobal.h>
|
2021-04-06 11:54:52 +00:00
|
|
|
#include <layershellqt_logging.h>
|
2021-04-01 00:28:01 +00:00
|
|
|
|
|
|
|
using namespace LayerShellQt;
|
|
|
|
|
|
|
|
void Shell::useLayerShell()
|
|
|
|
{
|
2021-04-06 11:54:52 +00:00
|
|
|
const bool ret = qputenv("QT_WAYLAND_SHELL_INTEGRATION", "layer-shell");
|
|
|
|
if (!ret) {
|
|
|
|
qCDebug(LAYERSHELLQT) << "Unable to set QT_WAYLAND_SHELL_INTEGRATION=layer-shell";
|
|
|
|
}
|
2021-04-01 00:28:01 +00:00
|
|
|
}
|