Lines 1-6
Link Here
|
1 |
--- src/evdev.c.orig 2015-03-27 01:35:50 UTC |
1 |
--- src/evdev.c.orig 2017-01-03 01:26:00 UTC |
2 |
+++ src/evdev.c |
2 |
+++ src/evdev.c |
3 |
@@ -37,9 +37,13 @@ |
3 |
@@ -38,9 +38,13 @@ |
4 |
#include <X11/keysym.h> |
4 |
#include <X11/keysym.h> |
5 |
#include <X11/extensions/XI.h> |
5 |
#include <X11/extensions/XI.h> |
6 |
|
6 |
|
Lines 14-20
Link Here
|
14 |
#include <unistd.h> |
14 |
#include <unistd.h> |
15 |
#include <errno.h> |
15 |
#include <errno.h> |
16 |
#include <fcntl.h> |
16 |
#include <fcntl.h> |
17 |
@@ -222,6 +226,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo) |
17 |
@@ -226,6 +230,7 @@ EvdevIsDuplicate(InputInfoPtr pInfo) |
18 |
static BOOL |
18 |
static BOOL |
19 |
EvdevDeviceIsVirtual(const char* devicenode) |
19 |
EvdevDeviceIsVirtual(const char* devicenode) |
20 |
{ |
20 |
{ |
Lines 22-28
Link Here
|
22 |
struct udev *udev = NULL; |
22 |
struct udev *udev = NULL; |
23 |
struct udev_device *device = NULL; |
23 |
struct udev_device *device = NULL; |
24 |
struct stat st; |
24 |
struct stat st; |
25 |
@@ -252,6 +257,9 @@ out: |
25 |
@@ -256,6 +261,9 @@ out: |
26 |
udev_device_unref(device); |
26 |
udev_device_unref(device); |
27 |
udev_unref(udev); |
27 |
udev_unref(udev); |
28 |
return rc; |
28 |
return rc; |
Lines 31-38
Link Here
|
31 |
+#endif |
31 |
+#endif |
32 |
} |
32 |
} |
33 |
|
33 |
|
34 |
#ifndef HAVE_SMOOTH_SCROLLING |
34 |
|
35 |
@@ -1086,11 +1094,13 @@ EvdevReadInput(InputInfoPtr pInfo) |
35 |
@@ -1062,11 +1070,13 @@ EvdevReadInput(InputInfoPtr pInfo) |
36 |
do { |
36 |
do { |
37 |
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); |
37 |
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev); |
38 |
if (rc < 0) { |
38 |
if (rc < 0) { |
Lines 47-54
Link Here
|
47 |
+ } |
47 |
+ } |
48 |
break; |
48 |
break; |
49 |
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) { |
49 |
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) { |
50 |
#ifdef MULTITOUCH |
50 |
if (pEvdev->mtdev) |
51 |
@@ -1470,10 +1480,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de |
51 |
@@ -1476,10 +1486,15 @@ EvdevAddAbsValuatorClass(DeviceIntPtr de |
52 |
continue; |
52 |
continue; |
53 |
|
53 |
|
54 |
abs = libevdev_get_abs_info(pEvdev->dev, axis); |
54 |
abs = libevdev_get_abs_info(pEvdev->dev, axis); |