Changeset View
Changeset View
Standalone View
Standalone View
main.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | #include <KPluginMetaData> | 43 | #include <KPluginMetaData> | ||
44 | #include <KSharedConfig> | 44 | #include <KSharedConfig> | ||
45 | #include <KWayland/Server/surface_interface.h> | 45 | #include <KWayland/Server/surface_interface.h> | ||
46 | // Qt | 46 | // Qt | ||
47 | #include <qplatformdefs.h> | 47 | #include <qplatformdefs.h> | ||
48 | #include <QCommandLineParser> | 48 | #include <QCommandLineParser> | ||
49 | #include <QQuickWindow> | 49 | #include <QQuickWindow> | ||
50 | #include <QStandardPaths> | 50 | #include <QStandardPaths> | ||
51 | #include <QtDBus> | 51 | #include <QTranslator> | ||
52 | #include <QLibraryInfo> | ||||
52 | 53 | | |||
53 | // system | 54 | // system | ||
54 | #ifdef HAVE_UNISTD_H | 55 | #ifdef HAVE_UNISTD_H | ||
55 | #include <unistd.h> | 56 | #include <unistd.h> | ||
56 | #endif // HAVE_UNISTD_H | 57 | #endif // HAVE_UNISTD_H | ||
57 | 58 | | |||
58 | #ifdef HAVE_MALLOC_H | 59 | #ifdef HAVE_MALLOC_H | ||
59 | #include <malloc.h> | 60 | #include <malloc.h> | ||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | |||||
252 | #endif // M_TRIM_THRESHOLD | 253 | #endif // M_TRIM_THRESHOLD | ||
253 | } | 254 | } | ||
254 | 255 | | |||
255 | void Application::setupLocalizedString() | 256 | void Application::setupLocalizedString() | ||
256 | { | 257 | { | ||
257 | KLocalizedString::setApplicationDomain("kwin"); | 258 | KLocalizedString::setApplicationDomain("kwin"); | ||
258 | } | 259 | } | ||
259 | 260 | | |||
260 | void Application::notifyKSplash() | | |||
261 | { | | |||
262 | // Tell KSplash that KWin has started | | |||
263 | QDBusMessage ksplashProgressMessage = QDBusMessage::createMethodCall(QStringLiteral("org.kde.KSplash"), | | |||
264 | QStringLiteral("/KSplash"), | | |||
265 | QStringLiteral("org.kde.KSplash"), | | |||
266 | QStringLiteral("setStage")); | | |||
267 | ksplashProgressMessage.setArguments(QList<QVariant>() << QStringLiteral("wm")); | | |||
268 | QDBusConnection::sessionBus().asyncCall(ksplashProgressMessage); | | |||
269 | } | | |||
270 | | ||||
271 | void Application::createWorkspace() | 261 | void Application::createWorkspace() | ||
272 | { | 262 | { | ||
273 | // we want all QQuickWindows with an alpha buffer, do here as Workspace might create QQuickWindows | 263 | // we want all QQuickWindows with an alpha buffer, do here as Workspace might create QQuickWindows | ||
274 | QQuickWindow::setDefaultAlphaBuffer(true); | 264 | QQuickWindow::setDefaultAlphaBuffer(true); | ||
275 | 265 | | |||
276 | // This tries to detect compositing options and can use GLX. GLX problems | 266 | // This tries to detect compositing options and can use GLX. GLX problems | ||
277 | // (X errors) shouldn't cause kwin to abort, so this is out of the | 267 | // (X errors) shouldn't cause kwin to abort, so this is out of the | ||
278 | // critical startup section where x errors cause kwin to abort. | 268 | // critical startup section where x errors cause kwin to abort. | ||
▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines |