Changeset View
Changeset View
Standalone View
Standalone View
main.cpp
Show All 31 Lines | |||||
32 | #include "screens.h" | 32 | #include "screens.h" | ||
33 | #include "screenlockerwatcher.h" | 33 | #include "screenlockerwatcher.h" | ||
34 | #include "sm.h" | 34 | #include "sm.h" | ||
35 | #include "workspace.h" | 35 | #include "workspace.h" | ||
36 | #include "xcbutils.h" | 36 | #include "xcbutils.h" | ||
37 | 37 | | |||
38 | #include <kwineffects.h> | 38 | #include <kwineffects.h> | ||
39 | 39 | | |||
40 | #include "helpers/perf/ftrace_marker.h" | ||||
41 | | ||||
40 | // KDE | 42 | // KDE | ||
41 | #include <KAboutData> | 43 | #include <KAboutData> | ||
42 | #include <KLocalizedString> | 44 | #include <KLocalizedString> | ||
43 | #include <KPluginMetaData> | 45 | #include <KPluginMetaData> | ||
44 | #include <KSharedConfig> | 46 | #include <KSharedConfig> | ||
45 | #include <KWayland/Server/surface_interface.h> | 47 | #include <KWayland/Server/surface_interface.h> | ||
46 | // Qt | 48 | // Qt | ||
47 | #include <qplatformdefs.h> | 49 | #include <qplatformdefs.h> | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 105 | Application::Application(Application::OperationMode mode, int &argc, char **argv) | |||
104 | : QApplication(argc, argv) | 106 | : QApplication(argc, argv) | ||
105 | , m_eventFilter(new XcbEventFilter()) | 107 | , m_eventFilter(new XcbEventFilter()) | ||
106 | , m_configLock(false) | 108 | , m_configLock(false) | ||
107 | , m_config() | 109 | , m_config() | ||
108 | , m_kxkbConfig() | 110 | , m_kxkbConfig() | ||
109 | , m_inputConfig() | 111 | , m_inputConfig() | ||
110 | , m_operationMode(mode) | 112 | , m_operationMode(mode) | ||
111 | { | 113 | { | ||
114 | #ifdef KWIN_BUILD_PERF | ||||
115 | Perf::FtraceMarker::create(this); | ||||
116 | #endif | ||||
117 | | ||||
112 | qRegisterMetaType<Options::WindowOperation>("Options::WindowOperation"); | 118 | qRegisterMetaType<Options::WindowOperation>("Options::WindowOperation"); | ||
113 | qRegisterMetaType<KWin::EffectWindow*>(); | 119 | qRegisterMetaType<KWin::EffectWindow*>(); | ||
114 | qRegisterMetaType<KWayland::Server::SurfaceInterface *>("KWayland::Server::SurfaceInterface *"); | 120 | qRegisterMetaType<KWayland::Server::SurfaceInterface *>("KWayland::Server::SurfaceInterface *"); | ||
115 | qRegisterMetaType<KSharedConfigPtr>(); | 121 | qRegisterMetaType<KSharedConfigPtr>(); | ||
116 | } | 122 | } | ||
117 | 123 | | |||
118 | void Application::setConfigLock(bool lock) | 124 | void Application::setConfigLock(bool lock) | ||
119 | { | 125 | { | ||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |