mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
4 Commits
xf86-input
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
777cfa148f | ||
|
|
447fd220e0 | ||
|
|
f2c6da0242 | ||
|
|
9791afc4c1 |
@@ -23,7 +23,7 @@
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([xf86-input-evdev],
|
||||
[2.7.2],
|
||||
[2.7.3],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
[xf86-input-evdev])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
|
||||
@@ -30,7 +30,7 @@ AM_CPPFLAGS =-I$(top_srcdir)/include
|
||||
|
||||
@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
|
||||
@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
|
||||
@DRIVER_NAME@_drv_la_LIBADD = $(MTDEV_LIBS)
|
||||
@DRIVER_NAME@_drv_la_LIBADD = $(MTDEV_LIBS) $(UDEV_LIBS)
|
||||
@DRIVER_NAME@_drv_ladir = @inputdir@
|
||||
|
||||
@DRIVER_NAME@_drv_la_SOURCES = @DRIVER_NAME@.c \
|
||||
|
||||
10
src/evdev.c
10
src/evdev.c
@@ -1107,12 +1107,8 @@ EvdevReadInput(InputInfoPtr pInfo)
|
||||
if (len <= 0)
|
||||
{
|
||||
if (errno == ENODEV) /* May happen after resume */
|
||||
{
|
||||
EvdevMBEmuFinalize(pInfo);
|
||||
Evdev3BEmuFinalize(pInfo);
|
||||
xf86RemoveEnabledDevice(pInfo);
|
||||
EvdevCloseDevice(pInfo);
|
||||
} else if (errno != EAGAIN)
|
||||
else if (errno != EAGAIN)
|
||||
{
|
||||
/* We use X_NONE here because it doesn't alloc */
|
||||
xf86MsgVerb(X_NONE, 0, "%s: Read error: %s\n", pInfo->name,
|
||||
@@ -1669,7 +1665,7 @@ EvdevInitButtonMapping(InputInfoPtr pInfo)
|
||||
|
||||
xf86IDrvMsg(pInfo, X_CONFIG, "ButtonMapping '%s'\n", mapping);
|
||||
map = mapping;
|
||||
while (s && *s != '\0' && nbuttons < EVDEV_MAXBUTTONS)
|
||||
do
|
||||
{
|
||||
btn = strtol(map, &s, 10);
|
||||
|
||||
@@ -1683,7 +1679,7 @@ EvdevInitButtonMapping(InputInfoPtr pInfo)
|
||||
|
||||
pEvdev->btnmap[nbuttons++] = btn;
|
||||
map = s;
|
||||
}
|
||||
} while (s && *s != '\0' && nbuttons < EVDEV_MAXBUTTONS);
|
||||
free(mapping);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user