mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 09:34:04 +00:00
Don't init the AccelSpeed/LeftHanded properties on the base tablet device
This device never sends events, no point in exposing these options Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
@@ -4092,7 +4092,8 @@ LibinputInitAccelProperty(DeviceIntPtr dev,
|
||||
enum libinput_config_accel_profile profile;
|
||||
BOOL profiles[2] = {FALSE};
|
||||
|
||||
if (!libinput_device_config_accel_is_available(device))
|
||||
if (!libinput_device_config_accel_is_available(device) ||
|
||||
driver_data->capabilities & CAP_TABLET)
|
||||
return;
|
||||
|
||||
prop_accel = LibinputMakeProperty(dev,
|
||||
@@ -4260,7 +4261,8 @@ LibinputInitLeftHandedProperty(DeviceIntPtr dev,
|
||||
{
|
||||
BOOL left_handed = driver_data->options.left_handed;
|
||||
|
||||
if (!libinput_device_config_left_handed_is_available(device))
|
||||
if (!libinput_device_config_left_handed_is_available(device) ||
|
||||
driver_data->capabilities & CAP_TABLET)
|
||||
return;
|
||||
|
||||
prop_left_handed = LibinputMakeProperty(dev,
|
||||
|
||||
Reference in New Issue
Block a user