Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/x11/xlibbackend.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
90 | m_touchpadAtom.intern(m_connection, XI_TOUCHPAD); | 90 | m_touchpadAtom.intern(m_connection, XI_TOUCHPAD); | ||
91 | m_enabledAtom.intern(m_connection, XI_PROP_ENABLED); | 91 | m_enabledAtom.intern(m_connection, XI_PROP_ENABLED); | ||
92 | 92 | | |||
93 | m_synapticsIdentifierAtom.intern(m_connection, SYNAPTICS_PROP_CAPABILITIES); | 93 | m_synapticsIdentifierAtom.intern(m_connection, SYNAPTICS_PROP_CAPABILITIES); | ||
94 | m_libinputIdentifierAtom.intern(m_connection, "libinput Send Events Modes Available"); | 94 | m_libinputIdentifierAtom.intern(m_connection, "libinput Send Events Modes Available"); | ||
95 | 95 | | |||
96 | m_device.reset(findTouchpad()); | 96 | m_device.reset(findTouchpad()); | ||
97 | if (!m_device) { | 97 | if (!m_device) { | ||
98 | m_errorString = ("No touchpad found"); | 98 | m_errorString = i18n("No touchpad found"); | ||
99 | } | 99 | } | ||
100 | } | 100 | } | ||
101 | 101 | | |||
102 | XlibTouchpad* XlibBackend::findTouchpad() | 102 | XlibTouchpad* XlibBackend::findTouchpad() | ||
103 | { | 103 | { | ||
104 | int nDevices = 0; | 104 | int nDevices = 0; | ||
105 | QScopedPointer<XDeviceInfo, DeviceListDeleter> | 105 | QScopedPointer<XDeviceInfo, DeviceListDeleter> | ||
106 | deviceInfo(XListInputDevices(m_display.data(), &nDevices)); | 106 | deviceInfo(XListInputDevices(m_display.data(), &nDevices)); | ||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |