Changeset View
Changeset View
Standalone View
Standalone View
main_x11.cpp
Show First 20 Lines • Show All 400 Lines • ▼ Show 20 Line(s) | 333 | { | |||
---|---|---|---|---|---|
401 | // Disable the glib event loop integration, since it seems to be responsible | 401 | // Disable the glib event loop integration, since it seems to be responsible | ||
402 | // for several bug reports about high CPU usage (bug #239963) | 402 | // for several bug reports about high CPU usage (bug #239963) | ||
403 | setenv("QT_NO_GLIB", "1", true); | 403 | setenv("QT_NO_GLIB", "1", true); | ||
404 | 404 | | |||
405 | // enforce xcb plugin, unfortunately command line switch has precedence | 405 | // enforce xcb plugin, unfortunately command line switch has precedence | ||
406 | setenv("QT_QPA_PLATFORM", "xcb", true); | 406 | setenv("QT_QPA_PLATFORM", "xcb", true); | ||
407 | 407 | | |||
408 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | 408 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | ||
409 | #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) | | |||
410 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 409 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
411 | #endif | | |||
412 | 410 | | |||
413 | KWin::ApplicationX11 a(argc, argv); | 411 | KWin::ApplicationX11 a(argc, argv); | ||
414 | a.setupTranslator(); | 412 | a.setupTranslator(); | ||
415 | 413 | | |||
416 | KWin::Application::createAboutData(); | 414 | KWin::Application::createAboutData(); | ||
417 | 415 | | |||
418 | QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager")); | 416 | QCommandLineOption replaceOption(QStringLiteral("replace"), i18n("Replace already-running ICCCM2.0-compliant window manager")); | ||
419 | 417 | | |||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |