Layershellqt

shell.cpp
1/*
2 * SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7#include "shell.h"
8#include <QByteArray>
9#include <layershellqt_logging.h>
10#include <qglobal.h>
11
12using namespace LayerShellQt;
13
14void Shell::useLayerShell()
15{
16 const bool ret = qputenv("QT_WAYLAND_SHELL_INTEGRATION", "layer-shell");
17 if (!ret) {
18 qCDebug(LAYERSHELLQT) << "Unable to set QT_WAYLAND_SHELL_INTEGRATION=layer-shell";
19 }
20}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:02:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.