Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show All 30 Lines | |||||
31 | 31 | | |||
32 | // KWayland | 32 | // KWayland | ||
33 | #include <KWayland/Server/display.h> | 33 | #include <KWayland/Server/display.h> | ||
34 | #include <KWayland/Server/seat_interface.h> | 34 | #include <KWayland/Server/seat_interface.h> | ||
35 | // KDE | 35 | // KDE | ||
36 | #include <KLocalizedString> | 36 | #include <KLocalizedString> | ||
37 | #include <KPluginLoader> | 37 | #include <KPluginLoader> | ||
38 | #include <KPluginMetaData> | 38 | #include <KPluginMetaData> | ||
39 | #include <KCrash> | ||||
39 | #include <KQuickAddons/QtQuickSettings> | 40 | #include <KQuickAddons/QtQuickSettings> | ||
40 | 41 | | |||
41 | // Qt | 42 | // Qt | ||
42 | #include <qplatformdefs.h> | 43 | #include <qplatformdefs.h> | ||
43 | #include <QAbstractEventDispatcher> | 44 | #include <QAbstractEventDispatcher> | ||
44 | #include <QCommandLineParser> | 45 | #include <QCommandLineParser> | ||
45 | #include <QtConcurrentRun> | 46 | #include <QtConcurrentRun> | ||
46 | #include <QFile> | 47 | #include <QFile> | ||
Show All 31 Lines | |||||
78 | namespace KWin | 79 | namespace KWin | ||
79 | { | 80 | { | ||
80 | 81 | | |||
81 | static void sighandler(int) | 82 | static void sighandler(int) | ||
82 | { | 83 | { | ||
83 | QApplication::exit(); | 84 | QApplication::exit(); | ||
84 | } | 85 | } | ||
85 | 86 | | |||
87 | void disableDrKonqi() | ||||
88 | { | ||||
89 | KCrash::setDrKonqiEnabled(false); | ||||
90 | } | ||||
91 | // run immediately, before Q_CORE_STARTUP functions | ||||
92 | // that would enable drkonqi | ||||
93 | Q_CONSTRUCTOR_FUNCTION(disableDrKonqi) | ||||
94 | | ||||
86 | static void readDisplay(int pipe); | 95 | static void readDisplay(int pipe); | ||
87 | 96 | | |||
88 | enum class RealTimeFlags | 97 | enum class RealTimeFlags | ||
89 | { | 98 | { | ||
90 | DontReset, | 99 | DontReset, | ||
91 | ResetOnFork | 100 | ResetOnFork | ||
92 | }; | 101 | }; | ||
93 | 102 | | |||
▲ Show 20 Lines • Show All 715 Lines • Show Last 20 Lines |