Changeset View
Changeset View
Standalone View
Standalone View
kcms/mouse/backends/x11/x11_backend.cpp
- This file was moved from kcms/input/backends/x11/x11_backend.cpp.
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | 48 | | |||
49 | X11Backend *X11Backend::implementation(QObject *parent) | 49 | X11Backend *X11Backend::implementation(QObject *parent) | ||
50 | { | 50 | { | ||
51 | auto dpy = QX11Info::display(); | 51 | auto dpy = QX11Info::display(); | ||
52 | Atom testAtom = XInternAtom(dpy, LIBINPUT_PROP_ACCEL, True); | 52 | Atom testAtom = XInternAtom(dpy, LIBINPUT_PROP_ACCEL, True); | ||
53 | 53 | | |||
54 | //There are multiple possible drivers | 54 | //There are multiple possible drivers | ||
55 | if (testAtom) { | 55 | if (testAtom) { | ||
56 | qCDebug(KCM_INPUT) << "Using libinput driver on X11."; | 56 | qCDebug(KCM_MOUSE) << "Using libinput driver on X11."; | ||
57 | return new X11LibinputBackend(parent); | 57 | return new X11LibinputBackend(parent); | ||
58 | } | 58 | } | ||
59 | else { | 59 | else { | ||
60 | qCDebug(KCM_INPUT) << "Using evdev driver on X11."; | 60 | qCDebug(KCM_MOUSE) << "Using evdev driver on X11."; | ||
61 | return new X11EvdevBackend(parent); | 61 | return new X11EvdevBackend(parent); | ||
62 | } | 62 | } | ||
63 | } | 63 | } | ||
64 | 64 | | |||
65 | X11Backend::X11Backend(QObject* parent) | 65 | X11Backend::X11Backend(QObject* parent) | ||
66 | : InputBackend(parent) | 66 | : InputBackend(parent) | ||
67 | { | 67 | { | ||
68 | m_platformX11 = QX11Info::isPlatformX11(); | 68 | m_platformX11 = QX11Info::isPlatformX11(); | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |