summaryrefslogtreecommitdiff
path: root/src/apple.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-05-29 07:17:41 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-04 16:19:19 +1000
commit164c62a97591d4c9b649460e7442977ea82ac02b (patch)
tree0c29a85f315718831a63f656600ff6dbfd73542c /src/apple.c
parent43e270fb7a10da20ab89dd699839c1cb6df119b4 (diff)
Use libevdev as backend
Removes the need to ioctl manually and check bits, with all the dangers that come with that. libevdev is much better prepared for invalid values, OOB checks, etc. Plus, we get almost free SYN_DROPPED handling as well which we didn't have before. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/apple.c')
-rw-r--r--src/apple.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apple.c b/src/apple.c
index 8e00a84..71f1dc3 100644
--- a/src/apple.c
+++ b/src/apple.c
@@ -303,7 +303,8 @@ EvdevAppleInitProperty(DeviceIntPtr dev)
enum fkeymode fkeymode;
if (!product_check(apple_keyboard_table,
- pEvdev->id_vendor, pEvdev->id_product))
+ libevdev_get_id_vendor(pEvdev->dev),
+ libevdev_get_id_product(pEvdev->dev)))
return;
fkeymode = get_fnmode();