mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-09 15:20:25 +01:00
Currently we are using DIY timers in the touchpad softbutton and tap handling code, and at least the softbutton code gets its wrong. It uses one timer-fd per touchpad to set a timeout per touch, which means that if a timeout is set for 100ms from now for touch 1, and then 50 ms later touch 2 sets a timeout for 200 ms from now, then the timeout for touch 1 will come 150 ms too late. This commits adds a proper timer subsystem so that we've one place to deal with timer handling, and so that we can only get it wrong (well hopefully we get it right) in one place. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
46 lines
938 B
Makefile
46 lines
938 B
Makefile
lib_LTLIBRARIES = libinput.la
|
|
|
|
include_HEADERS = \
|
|
libinput.h
|
|
|
|
libinput_la_SOURCES = \
|
|
libinput.c \
|
|
libinput.h \
|
|
libinput-private.h \
|
|
libinput-util.c \
|
|
libinput-util.h \
|
|
evdev.c \
|
|
evdev.h \
|
|
evdev-mt-touchpad.c \
|
|
evdev-mt-touchpad.h \
|
|
evdev-mt-touchpad-tap.c \
|
|
evdev-mt-touchpad-buttons.c \
|
|
filter.c \
|
|
filter.h \
|
|
path.h \
|
|
path.c \
|
|
udev-seat.c \
|
|
udev-seat.h \
|
|
timer.c \
|
|
timer.h \
|
|
../include/linux/input.h
|
|
|
|
libinput_la_LIBADD = $(MTDEV_LIBS) \
|
|
$(LIBUDEV_LIBS) \
|
|
$(LIBEVDEV_LIBS) \
|
|
-lm
|
|
libinput_la_CFLAGS = -I$(top_srcdir)/include \
|
|
$(MTDEV_CFLAGS) \
|
|
$(LIBUDEV_CFLAGS) \
|
|
$(LIBEVDEV_CFLAGS) \
|
|
$(GCC_CFLAGS)
|
|
|
|
libinput_la_LDFLAGS = -version-info $(LIBINPUT_LT_VERSION)
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libinput.pc
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
DISTCLEANFILES = libinput-version.h
|
|
EXTRA_DIST = libinput-version.h.in
|