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 55 Lines • ▼ Show 20 Line(s) | 104 | Application::Application(Application::OperationMode mode, int &argc, char **argv) | |||
103 | : QApplication(argc, argv) | 105 | : QApplication(argc, argv) | ||
104 | , m_eventFilter(new XcbEventFilter()) | 106 | , m_eventFilter(new XcbEventFilter()) | ||
105 | , m_configLock(false) | 107 | , m_configLock(false) | ||
106 | , m_config() | 108 | , m_config() | ||
107 | , m_kxkbConfig() | 109 | , m_kxkbConfig() | ||
108 | , m_inputConfig() | 110 | , m_inputConfig() | ||
109 | , m_operationMode(mode) | 111 | , m_operationMode(mode) | ||
110 | { | 112 | { | ||
113 | #ifdef KWIN_BUILD_PERF | ||||
114 | Perf::FtraceMarker::create(this); | ||||
115 | #endif | ||||
116 | | ||||
111 | qRegisterMetaType<Options::WindowOperation>("Options::WindowOperation"); | 117 | qRegisterMetaType<Options::WindowOperation>("Options::WindowOperation"); | ||
112 | qRegisterMetaType<KWin::EffectWindow*>(); | 118 | qRegisterMetaType<KWin::EffectWindow*>(); | ||
113 | qRegisterMetaType<KWayland::Server::SurfaceInterface *>("KWayland::Server::SurfaceInterface *"); | 119 | qRegisterMetaType<KWayland::Server::SurfaceInterface *>("KWayland::Server::SurfaceInterface *"); | ||
114 | qRegisterMetaType<KSharedConfigPtr>(); | 120 | qRegisterMetaType<KSharedConfigPtr>(); | ||
115 | } | 121 | } | ||
116 | 122 | | |||
117 | void Application::setConfigLock(bool lock) | 123 | void Application::setConfigLock(bool lock) | ||
118 | { | 124 | { | ||
▲ Show 20 Lines • Show All 346 Lines • Show Last 20 Lines |