Changeset View
Changeset View
Standalone View
Standalone View
main_x11.cpp
Show All 37 Lines | |||||
38 | #include <qplatformdefs.h> | 38 | #include <qplatformdefs.h> | ||
39 | #include <QComboBox> | 39 | #include <QComboBox> | ||
40 | #include <QCommandLineParser> | 40 | #include <QCommandLineParser> | ||
41 | #include <QDialog> | 41 | #include <QDialog> | ||
42 | #include <QDialogButtonBox> | 42 | #include <QDialogButtonBox> | ||
43 | #include <QFile> | 43 | #include <QFile> | ||
44 | #include <QLabel> | 44 | #include <QLabel> | ||
45 | #include <QPushButton> | 45 | #include <QPushButton> | ||
46 | #include <QSurfaceFormat> | ||||
46 | #include <QVBoxLayout> | 47 | #include <QVBoxLayout> | ||
47 | #include <QX11Info> | 48 | #include <QX11Info> | ||
48 | 49 | | |||
zzag: Each include section has to be sorted alphabetically. | |||||
49 | // system | 50 | // system | ||
50 | #ifdef HAVE_UNISTD_H | 51 | #ifdef HAVE_UNISTD_H | ||
51 | #include <unistd.h> | 52 | #include <unistd.h> | ||
52 | #endif // HAVE_UNISTD_H | 53 | #endif // HAVE_UNISTD_H | ||
53 | #include <iostream> | 54 | #include <iostream> | ||
54 | 55 | | |||
55 | Q_LOGGING_CATEGORY(KWIN_CORE, "kwin_core", QtCriticalMsg) | 56 | Q_LOGGING_CATEGORY(KWIN_CORE, "kwin_core", QtCriticalMsg) | ||
56 | 57 | | |||
▲ Show 20 Lines • Show All 355 Lines • ▼ Show 20 Line(s) | 336 | { | |||
412 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 413 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
413 | 414 | | |||
414 | KWin::ApplicationX11 a(argc, argv); | 415 | KWin::ApplicationX11 a(argc, argv); | ||
415 | a.setupTranslator(); | 416 | a.setupTranslator(); | ||
416 | 417 | | |||
417 | KWin::Application::createAboutData(); | 418 | KWin::Application::createAboutData(); | ||
418 | KQuickAddons::QtQuickSettings::init(); | 419 | KQuickAddons::QtQuickSettings::init(); | ||
419 | 420 | | |||
421 | // disables vsync for any QtQuick windows we create (BUG 406180) | ||||
romangg: Please add a one-line comment why it's done. | |||||
422 | QSurfaceFormat format = QSurfaceFormat::defaultFormat(); | ||||
423 | format.setSwapInterval(0); | ||||
424 | QSurfaceFormat::setDefaultFormat(format); | ||||
425 | | ||||
420 | QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager")); | 426 | QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager")); | ||
421 | 427 | | |||
422 | QCommandLineParser parser; | 428 | QCommandLineParser parser; | ||
423 | a.setupCommandLine(&parser); | 429 | a.setupCommandLine(&parser); | ||
424 | parser.addOption(replaceOption); | 430 | parser.addOption(replaceOption); | ||
425 | #ifdef KWIN_BUILD_ACTIVITIES | 431 | #ifdef KWIN_BUILD_ACTIVITIES | ||
426 | QCommandLineOption noActivitiesOption(QStringLiteral("no-kactivities"), | 432 | QCommandLineOption noActivitiesOption(QStringLiteral("no-kactivities"), | ||
427 | i18n("Disable KActivities integration.")); | 433 | i18n("Disable KActivities integration.")); | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
Each include section has to be sorted alphabetically.