Changeset View
Changeset View
Standalone View
Standalone View
main_x11.cpp
Show First 20 Lines • Show All 402 Lines • ▼ Show 20 Line(s) | 335 | { | |||
---|---|---|---|---|---|
403 | // Disable the glib event loop integration, since it seems to be responsible | 403 | // Disable the glib event loop integration, since it seems to be responsible | ||
404 | // for several bug reports about high CPU usage (bug #239963) | 404 | // for several bug reports about high CPU usage (bug #239963) | ||
405 | setenv("QT_NO_GLIB", "1", true); | 405 | setenv("QT_NO_GLIB", "1", true); | ||
406 | 406 | | |||
407 | // enforce xcb plugin, unfortunately command line switch has precedence | 407 | // enforce xcb plugin, unfortunately command line switch has precedence | ||
408 | setenv("QT_QPA_PLATFORM", "xcb", true); | 408 | setenv("QT_QPA_PLATFORM", "xcb", true); | ||
409 | 409 | | |||
410 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | 410 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | ||
411 | qunsetenv("QT_SCALE_FACTOR"); | ||||
411 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 412 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
412 | 413 | | |||
413 | KWin::ApplicationX11 a(argc, argv); | 414 | KWin::ApplicationX11 a(argc, argv); | ||
414 | a.setupTranslator(); | 415 | a.setupTranslator(); | ||
415 | 416 | | |||
416 | KWin::Application::createAboutData(); | 417 | KWin::Application::createAboutData(); | ||
417 | KQuickAddons::QtQuickSettings::init(); | 418 | KQuickAddons::QtQuickSettings::init(); | ||
418 | 419 | | |||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |