xf86Xinput: release server managed fd before removing the device from the list
authorHans de Goede <hdegoede@redhat.com>
Wed, 12 Mar 2014 15:00:23 +0000 (16:00 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 13 Mar 2014 12:11:55 +0000 (13:11 +0100)
commit2b77b208daf9402472ba7fb709156a14eb487299
treedfced7804a2557a7d32eeffd2fc728b8a92bccef
parent0e972b6037d3709c13d46adef9d14b702f477abc
xf86Xinput: release server managed fd before removing the device from the list

So that the fd in use test in systemd_logind_release_fd works properly.

Note we cannot change the test inside systemd_logind_release_fd as it must
work for devices which were never added to the xf86InputDevs too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
hw/xfree86/common/xf86Xinput.c