Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/kwin_wayland/kwinwaylandbackend.cpp
Show All 34 Lines | |||||
35 | { | 35 | { | ||
36 | 36 | | |||
37 | m_deviceManager = new QDBusInterface (QStringLiteral("org.kde.KWin"), | 37 | m_deviceManager = new QDBusInterface (QStringLiteral("org.kde.KWin"), | ||
38 | QStringLiteral("/org/kde/KWin/InputDevice"), | 38 | QStringLiteral("/org/kde/KWin/InputDevice"), | ||
39 | QStringLiteral("org.kde.KWin.InputDeviceManager"), | 39 | QStringLiteral("org.kde.KWin.InputDeviceManager"), | ||
40 | QDBusConnection::sessionBus(), | 40 | QDBusConnection::sessionBus(), | ||
41 | this); | 41 | this); | ||
42 | 42 | | |||
43 | setMode(TouchpadInputBackendMode::WaylandLibinput); | ||||
44 | | ||||
43 | findTouchpads(); | 45 | findTouchpads(); | ||
44 | 46 | | |||
45 | m_deviceManager->connection().connect(QStringLiteral("org.kde.KWin"), | 47 | m_deviceManager->connection().connect(QStringLiteral("org.kde.KWin"), | ||
46 | QStringLiteral("/org/kde/KWin/InputDevice"), | 48 | QStringLiteral("/org/kde/KWin/InputDevice"), | ||
47 | QStringLiteral("org.kde.KWin.InputDeviceManager"), | 49 | QStringLiteral("org.kde.KWin.InputDeviceManager"), | ||
48 | QStringLiteral("deviceAdded"), | 50 | QStringLiteral("deviceAdded"), | ||
49 | this, | 51 | this, | ||
50 | SLOT(onDeviceAdded(QString))); | 52 | SLOT(onDeviceAdded(QString))); | ||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |