File indexing completed on 2024-04-21 03:59:16

0001 /*
0002     SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 #include <KWindowSystem>
0007 #include <QGuiApplication>
0008 
0009 int main(int argc, char *argv[])
0010 {
0011     qputenv("QT_QPA_PLATFORM", "wayland");
0012     QGuiApplication app(argc, argv);
0013     if (KWindowSystem::platform() != KWindowSystem::Platform::Wayland) {
0014         return 1;
0015     }
0016     if (!KWindowSystem::isPlatformWayland()) {
0017         return 1;
0018     }
0019     if (KWindowSystem::isPlatformX11()) {
0020         return 1;
0021     }
0022     return 0;
0023 }