KWin
Loading...
Searching...
No Matches
autotests
integration
helper
kill.cpp
Go to the documentation of this file.
1
/*
2
KWin - the KDE window manager
3
This file is part of the KDE project.
4
5
SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
6
SPDX-FileCopyrightText: 2019 David Edmundson <davidedmundson@kde.org>
7
8
SPDX-License-Identifier: GPL-2.0-or-later
9
*/
10
#include <QApplication>
11
#include <QEventLoop>
12
#include <QTimer>
13
#include <QWidget>
14
#include <unistd.h>
15
16
#include <csignal>
17
18
int
main
(
int
argc,
char
*argv[])
19
{
20
qputenv(
"QT_QPA_PLATFORM"
, QByteArrayLiteral(
"wayland"
));
21
QApplication app(argc, argv);
22
QWidget w;
23
w.setGeometry(QRect(0, 0, 100, 200));
24
w.show();
25
26
auto
freezeHandler = [](int) {
27
while
(
true
) {
28
sleep(10000);
29
}
30
};
31
32
signal(SIGUSR1, freezeHandler);
33
34
return
app.exec();
35
}
main
int main()
Definition
kwin-6.0-reset-active-mouse-screen.cpp:10
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0