layer-shell-qt-nokde/src/interfaces/shell.cpp

21 lines
490 B
C++
Raw Normal View History

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>
#include <layershellqt_logging.h>
2021-04-01 00:28:01 +00:00
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";
}
2021-04-01 00:28:01 +00:00
}