systemd-logind: Correctly deal with InputDevs sharing a device-node
authorHans de Goede <hdegoede@redhat.com>
Wed, 12 Mar 2014 13:57:24 +0000 (14:57 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 13 Mar 2014 12:11:52 +0000 (13:11 +0100)
commit0e972b6037d3709c13d46adef9d14b702f477abc
tree56532fad06dff9399fb437823fde2516eb8d5cf3
parent8d3f63dbe9bfd816beb6475fd0e00df4dbba269f
systemd-logind: Correctly deal with InputDevs sharing a device-node

InputDevices may share a single device-node, this happens ie with Wacom
tablets.

This patch makes take_fd and release_fd properly deal with this, together
with the earlier patch for updating the fd in all matching xf86InputDevs
on pause / resume this completes support for such shared device-nodes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/os-support/linux/systemd-logind.c