Commit 0b073d90 authored by Peter Hutterer's avatar Peter Hutterer

Link the left-handed property between the tools

The property is tablet-wide, not just per tool. So when one tool is updated,
run through all other devices that share the same underlying device.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: 's avatarHans de Goede <hdegoede@redhat.com>
parent 669fbb09
......@@ -3494,7 +3494,28 @@ LibinputSetPropertyLeftHanded(DeviceIntPtr dev,
if (!supported && left_handed)
return BadValue;
} else {
struct xf86libinput *other;
driver_data->options.left_handed = *data;
xorg_list_for_each_entry(other,
&driver_data->shared_device->device_list,
shared_device_link) {
DeviceIntPtr other_device = other->pInfo->dev;
if (other->options.left_handed == *data)
continue;
XIChangeDeviceProperty(other_device,
atom,
val->type,
val->format,
PropModeReplace,
val->size,
val->data,
TRUE);
}
}
return Success;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment