File indexing completed on 2024-10-13 04:55:02
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-3.0-or-later 0005 */ 0006 0007 #include "shell.h" 0008 #include <QByteArray> 0009 #include <layershellqt_logging.h> 0010 #include <qglobal.h> 0011 0012 using namespace LayerShellQt; 0013 0014 void Shell::useLayerShell() 0015 { 0016 const bool ret = qputenv("QT_WAYLAND_SHELL_INTEGRATION", "layer-shell"); 0017 if (!ret) { 0018 qCDebug(LAYERSHELLQT) << "Unable to set QT_WAYLAND_SHELL_INTEGRATION=layer-shell"; 0019 } 0020 }