Changeset View
Changeset View
Standalone View
Standalone View
main_x11.cpp
Show First 20 Lines • Show All 415 Lines • ▼ Show 20 Line(s) | 345 | { | |||
---|---|---|---|---|---|
416 | setenv("QT_NO_GLIB", "1", true); | 416 | setenv("QT_NO_GLIB", "1", true); | ||
417 | 417 | | |||
418 | // enforce xcb plugin, unfortunately command line switch has precedence | 418 | // enforce xcb plugin, unfortunately command line switch has precedence | ||
419 | setenv("QT_QPA_PLATFORM", "xcb", true); | 419 | setenv("QT_QPA_PLATFORM", "xcb", true); | ||
420 | 420 | | |||
421 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | 421 | qunsetenv("QT_DEVICE_PIXEL_RATIO"); | ||
422 | qunsetenv("QT_SCALE_FACTOR"); | 422 | qunsetenv("QT_SCALE_FACTOR"); | ||
423 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | 423 | QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling); | ||
424 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); | ||||
424 | 425 | | |||
425 | KWin::ApplicationX11 a(argc, argv); | 426 | KWin::ApplicationX11 a(argc, argv); | ||
426 | a.setupTranslator(); | 427 | a.setupTranslator(); | ||
427 | 428 | | |||
428 | KWin::Application::createAboutData(); | 429 | KWin::Application::createAboutData(); | ||
429 | KQuickAddons::QtQuickSettings::init(); | 430 | KQuickAddons::QtQuickSettings::init(); | ||
430 | 431 | | |||
431 | // disables vsync for any QtQuick windows we create (BUG 406180) | 432 | // disables vsync for any QtQuick windows we create (BUG 406180) | ||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |