backends/libinput: enable tap to click and tap-and-drag by default
This commit is contained in:
parent
2f6f1d9822
commit
0ab928c9ac
2 changed files with 8 additions and 8 deletions
|
@ -386,9 +386,9 @@ void TestLibinputDevice::testTapEnabledByDefault()
|
|||
device.tapEnabledByDefault = enabled;
|
||||
|
||||
Device d(&device);
|
||||
QCOMPARE(d.tapToClickEnabledByDefault(), enabled);
|
||||
QCOMPARE(d.property("tapToClickEnabledByDefault").toBool(), enabled);
|
||||
QCOMPARE(dbusProperty<bool>(d.sysName(), "tapToClickEnabledByDefault"), enabled);
|
||||
QCOMPARE(d.tapToClickEnabledByDefault(), true);
|
||||
QCOMPARE(d.property("tapToClickEnabledByDefault").toBool(), true);
|
||||
QCOMPARE(dbusProperty<bool>(d.sysName(), "tapToClickEnabledByDefault"), true);
|
||||
}
|
||||
|
||||
void TestLibinputDevice::testMiddleEmulationEnabledByDefault_data()
|
||||
|
@ -1114,9 +1114,9 @@ void TestLibinputDevice::testTapAndDragEnabledByDefault()
|
|||
device.tapAndDragEnabledByDefault = enabled;
|
||||
|
||||
Device d(&device);
|
||||
QCOMPARE(d.tapAndDragEnabledByDefault(), enabled);
|
||||
QCOMPARE(d.property("tapAndDragEnabledByDefault").toBool(), enabled);
|
||||
QCOMPARE(dbusProperty<bool>(d.sysName(), "tapAndDragEnabledByDefault"), enabled);
|
||||
QCOMPARE(d.tapAndDragEnabledByDefault(), true);
|
||||
QCOMPARE(d.property("tapAndDragEnabledByDefault").toBool(), true);
|
||||
QCOMPARE(dbusProperty<bool>(d.sysName(), "tapAndDragEnabledByDefault"), true);
|
||||
}
|
||||
|
||||
void TestLibinputDevice::testTapAndDrag_data()
|
||||
|
|
|
@ -285,9 +285,9 @@ Device::Device(libinput_device *device, QObject *parent)
|
|||
, m_tapFingerCount(libinput_device_config_tap_get_finger_count(m_device))
|
||||
, m_defaultTapButtonMap(libinput_device_config_tap_get_default_button_map(m_device))
|
||||
, m_tapButtonMap(libinput_device_config_tap_get_button_map(m_device))
|
||||
, m_tapToClickEnabledByDefault(libinput_device_config_tap_get_default_enabled(m_device) == LIBINPUT_CONFIG_TAP_ENABLED)
|
||||
, m_tapToClickEnabledByDefault(true)
|
||||
, m_tapToClick(libinput_device_config_tap_get_enabled(m_device))
|
||||
, m_tapAndDragEnabledByDefault(libinput_device_config_tap_get_default_drag_enabled(m_device))
|
||||
, m_tapAndDragEnabledByDefault(true)
|
||||
, m_tapAndDrag(libinput_device_config_tap_get_drag_enabled(m_device))
|
||||
, m_tapDragLockEnabledByDefault(libinput_device_config_tap_get_default_drag_lock_enabled(m_device))
|
||||
, m_tapDragLock(libinput_device_config_tap_get_drag_lock_enabled(m_device))
|
||||
|
|
Loading…
Reference in a new issue