Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show First 20 Lines • Show All 642 Lines • ▼ Show 20 Line(s) | 642 | if (hasOutputCountOption) { | |||
---|---|---|---|---|---|
643 | parser.addOption(outputCountOption); | 643 | parser.addOption(outputCountOption); | ||
644 | } | 644 | } | ||
645 | #if HAVE_LIBHYBRIS | 645 | #if HAVE_LIBHYBRIS | ||
646 | QCommandLineOption hwcomposerOption(QStringLiteral("hwcomposer"), i18n("Use libhybris hwcomposer")); | 646 | QCommandLineOption hwcomposerOption(QStringLiteral("hwcomposer"), i18n("Use libhybris hwcomposer")); | ||
647 | if (hasHwcomposerOption) { | 647 | if (hasHwcomposerOption) { | ||
648 | parser.addOption(hwcomposerOption); | 648 | parser.addOption(hwcomposerOption); | ||
649 | } | 649 | } | ||
650 | #endif | 650 | #endif | ||
651 | #if HAVE_INPUT | | |||
652 | QCommandLineOption libinputOption(QStringLiteral("libinput"), | 651 | QCommandLineOption libinputOption(QStringLiteral("libinput"), | ||
653 | i18n("Enable libinput support for input events processing. Note: never use in a nested session.")); | 652 | i18n("Enable libinput support for input events processing. Note: never use in a nested session.")); | ||
654 | parser.addOption(libinputOption); | 653 | parser.addOption(libinputOption); | ||
655 | #endif | | |||
656 | #if HAVE_DRM | 654 | #if HAVE_DRM | ||
657 | QCommandLineOption drmOption(QStringLiteral("drm"), i18n("Render through drm node.")); | 655 | QCommandLineOption drmOption(QStringLiteral("drm"), i18n("Render through drm node.")); | ||
658 | if (hasDrmOption) { | 656 | if (hasDrmOption) { | ||
659 | parser.addOption(drmOption); | 657 | parser.addOption(drmOption); | ||
660 | } | 658 | } | ||
661 | #endif | 659 | #endif | ||
662 | 660 | | |||
663 | QCommandLineOption inputMethodOption(QStringLiteral("inputmethod"), | 661 | QCommandLineOption inputMethodOption(QStringLiteral("inputmethod"), | ||
Show All 31 Lines | 690 | if (parser.isSet(listBackendsOption)) { | |||
695 | } | 693 | } | ||
696 | return 0; | 694 | return 0; | ||
697 | } | 695 | } | ||
698 | 696 | | |||
699 | if (parser.isSet(exitWithSessionOption)) { | 697 | if (parser.isSet(exitWithSessionOption)) { | ||
700 | a.setSessionArgument(parser.value(exitWithSessionOption)); | 698 | a.setSessionArgument(parser.value(exitWithSessionOption)); | ||
701 | } | 699 | } | ||
702 | 700 | | |||
703 | #if HAVE_INPUT | | |||
704 | KWin::Application::setUseLibinput(parser.isSet(libinputOption)); | 701 | KWin::Application::setUseLibinput(parser.isSet(libinputOption)); | ||
705 | #endif | | |||
706 | 702 | | |||
707 | QString pluginName; | 703 | QString pluginName; | ||
708 | QSize initialWindowSize; | 704 | QSize initialWindowSize; | ||
709 | QByteArray deviceIdentifier; | 705 | QByteArray deviceIdentifier; | ||
710 | int outputCount = 1; | 706 | int outputCount = 1; | ||
711 | qreal outputScale = 1; | 707 | qreal outputScale = 1; | ||
712 | 708 | | |||
713 | #if HAVE_DRM | 709 | #if HAVE_DRM | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |