libinput/src
Peter Hutterer 4cf4aba3fb evdev: filter unreliable tablet mode switch events
If we know that the tablet mode switch is bogus anyway, filter the event and
don't pass it to the caller. They won't know whether it's bogus so the only
result we get here is buggy behaviour.

This is the simplest solution here, it filters the mode switch at the lowest
level and thus the caller won't know that the tablet even has a mode switch at
all. Where the device doesn't have any other switches it'll also lose the
switch capability.

This may cause issues in some niche cases where the event node only has
that one bit and we now disabled it leaving us with a zero-event bit device.
Shouldn't matter to callers, but let's see.

Fixes #491

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-06-03 22:32:56 +00:00
..
builddir.h Remove some usage of libinput-util.h 2019-09-11 12:23:06 +10:00
evdev-debounce.c evdev: Rename button up and down states to mirror each other 2019-03-21 01:07:59 +00:00
evdev-fallback.c fallback: add missing curly braces to match the coding style 2020-06-03 22:32:56 +00:00
evdev-fallback.h evdev: Rename button up and down states to mirror each other 2019-03-21 01:07:59 +00:00
evdev-middle-button.c doc: remove the direct link to the various state diagrams 2019-11-15 00:24:00 +00:00
evdev-mt-touchpad-buttons.c quirks: rename the alps touchpad quirk to note it's a serial TP quirk 2020-03-05 16:35:53 +10:00
evdev-mt-touchpad-edge-scroll.c evdev-mt-touchpad-edge-scroll.c: remove unused includes 2019-09-12 09:36:40 +10:00
evdev-mt-touchpad-gestures.c touchpad: restore thumb detection while keeping fixes from !292 2020-05-22 02:16:05 +00:00
evdev-mt-touchpad-tap.c touchpad: correct the tap state transitions for a palm on TOUCH_BEGIN 2020-06-03 21:50:44 +00:00
evdev-mt-touchpad-thumb.c touchpad: restore thumb detection while keeping fixes from !292 2020-05-22 02:16:05 +00:00
evdev-mt-touchpad.c touchpad: add touch state debugging to the palm and tap state debug logs 2020-06-03 21:50:44 +00:00
evdev-mt-touchpad.h touchpad: add touch state debugging to the palm and tap state debug logs 2020-06-03 21:50:44 +00:00
evdev-tablet-pad-leds.c evdev-tablet-pad-leds.c: remove unused includes 2019-09-12 09:36:40 +10:00
evdev-tablet-pad.c Ignore key repeat in all backends 2020-06-02 01:07:01 +00:00
evdev-tablet-pad.h pad: switch the button mapping to one that can handle keys or buttons 2019-12-04 15:31:46 +10:00
evdev-tablet.c Ignore key repeat in all backends 2020-06-02 01:07:01 +00:00
evdev-tablet.h Revert "tablet: don't disable the proximity quirk on good sequences" 2020-05-22 03:10:06 +00:00
evdev-totem.c Ignore key repeat in all backends 2020-06-02 01:07:01 +00:00
evdev.c evdev: filter unreliable tablet mode switch events 2020-06-03 22:32:56 +00:00
evdev.h Deprecate wheel tilt as separate axis source 2020-05-21 07:29:44 +00:00
filter-flat.c filter-flat.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-low-dpi.c filter-low-dpi.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-mouse.c filter-mouse.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-private.h Add quirk to control velocity averaging, disable it by default 2018-08-22 12:12:55 +02:00
filter-tablet.c filter: drop an unused function and an unused struct 2019-02-06 14:22:02 +10:00
filter-touchpad-flat.c Allow the flat acceleration profile for touchpads 2020-05-27 06:21:00 +00:00
filter-touchpad-x230.c filter-touchpad-x230.c: remove unused includes 2019-09-12 09:36:40 +10:00
filter-touchpad.c touchpad: use the same speed for scrolling as the baseline of the accel curve 2019-10-14 02:57:48 +00:00
filter-trackpoint.c filter-trackpoint.c: remove unused include 2019-09-12 09:36:40 +10:00
filter.c filter.h/c: remove unused includes 2019-09-13 00:07:39 +03:00
filter.h Allow the flat acceleration profile for touchpads 2020-05-27 06:21:00 +00:00
libinput-git-version.h.in tools: add the git version in the libinput-record output 2018-03-06 14:22:30 +10:00
libinput-private.h Deprecate wheel tilt as separate axis source 2020-05-21 07:29:44 +00:00
libinput-restore-selinux-context.sh meson: Fix absolute libdir case in install script 2018-02-16 16:57:30 +10:00
libinput-uninstalled.pc.in buildsystem: add missing uninstalled pkg-config infra 2016-08-30 17:18:39 +10:00
libinput-util.h util: make the trace macro actually useful 2020-04-04 21:10:40 +10:00
libinput-version.h.in COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
libinput-versionsort.h Add versionsort test 2018-07-19 22:29:00 +03:00
libinput.c evdev: warn if our event processing lags by 10ms or more 2020-05-13 06:21:27 +00:00
libinput.h Deprecate wheel tilt as separate axis source 2020-05-21 07:29:44 +00:00
libinput.pc.in Add -lrt to the libs 2014-07-03 09:59:43 +10:00
libinput.sym pad: add LIBINPUT_EVENT_TABLET_PAD_KEY for pad keys 2019-12-04 15:38:39 +10:00
path-seat.c path-seat.c: remove unused includes 2019-09-13 00:07:39 +03:00
quirks.c Revert "tablet: don't disable the proximity quirk on good sequences" 2020-05-22 03:10:06 +00:00
quirks.h Revert "tablet: don't disable the proximity quirk on good sequences" 2020-05-22 03:10:06 +00:00
timer.c timer: make the timer offset error a bit more user-friendly 2020-01-31 13:03:00 +10:00
timer.h timer: flush the timer funcs if our events come in late 2017-09-21 12:27:46 +10:00
udev-seat.c Fix race condition causing duplicate devices in udev seats 2020-03-30 03:48:25 +00:00
udev-seat.h COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
util-bits.h Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-input-event.h Adjust for 64bit time_t for 32bit architectures 2019-11-26 15:11:44 +10:00
util-list.c Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-list.h Remove some usage of libinput-util.h 2019-09-11 12:23:06 +10:00
util-macros.h tools: add a tablet debugging tool 2019-11-19 09:56:14 +10:00
util-matrix.h Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-prop-parsers.c udev: parse the EVDEV_ABS properties for a potential fuzz setting 2019-09-11 12:24:02 +10:00
util-prop-parsers.h udev: parse the EVDEV_ABS properties for a potential fuzz setting 2019-09-11 12:24:02 +10:00
util-ratelimit.c Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-ratelimit.h Split utility functions into separate source files 2019-09-11 12:23:04 +10:00
util-strings.c util: fix a scan-build warning (value set but not read) 2020-03-22 10:43:52 +10:00
util-strings.h tools: record: drop quotes from os-release information 2020-03-21 11:02:48 +10:00
util-time.h evdev: print a human time for ratelimit tests 2020-03-22 10:35:21 +10:00