summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* quirks: Add tablet smoothing attribute.Quytelda Kahja2021-07-285-8/+48
| | | | | | | | | | | | https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/512 disables input smoothing for AES devices. However, some AES devices produce segmented/wobbly curves without smoothing. This change introduces an `AttrTabletSmoothing` boolean property, which overrides the default smoothing behavior. See #632 Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
* Update quirks/50-system-chuwi.quirksSanjiv2021-07-281-0/+4
| | | | | | Author: Sanjiv <sanjerat@gmail.com> Date: Wed Jul 28 04:27:56 2021 +0000 Signed-off-by: Sanjiv Erat <sanjerat@gmail.com>
* quirks: add Framework Touchpad QuirkKevin Anderson2021-07-281-0/+5
| | | | | | Handle a bug that the touchpad announces BTN_RIGHT Signed-off-by: Kevin Anderson <andersonkw2@gmail.com>
* gitlab CI: debug the meson_build scriptPeter Hutterer2021-07-281-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Define the versionsort overrides as inlinesPeter Hutterer2021-07-281-3/+3
| | | | | | | Squashes compiler warnings about unused functions given this header is included in multiple files. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: use the ci-templates FreeBSD templatesPeter Hutterer2021-07-284-167/+81
| | | | | | | | Replace our cross-compilation for FreeBSD with a proper template. FreeBSD doesn't do normal containers so we need a bunch of if/else to skip the container builds. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: move the SUITES handling to the template where it mattersPeter Hutterer2021-07-282-2/+4
| | | | | | | | | | Should have been part of 9133693b15eb8211c7b08eb2f486a88d915715f6. This fixes an issue with calls to meson_build.sh with an otherwise empty MESON_TEST_ARGS - thanks to the space before $SUITES it would no longer the zero-string condition in meson_build.sh. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to latest ci-templatesPeter Hutterer2021-07-283-10/+10
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: split the qemu meson build parts out as separate templatePeter Hutterer2021-07-282-22/+34
| | | | | | | | This was part of the test-suite-vm template but to make it easily re-usable split out the parts that are just about building in a qemu image from the parts that are specific to running the test suites. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: name the qemu tags per distributionPeter Hutterer2021-07-282-6/+6
| | | | | | | | Having only one qemu tag worked only because we only had one distribution using qemu. If we have multiple of those we just duplicate/overwrite the variable so let's not do that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: move the hold gesture section up to the othersPeter Hutterer2021-07-271-77/+77
| | | | | | Better structuring this way: pinch, swipe, hold, then other comments Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: fix the line alignments for the hold gesture tablesPeter Hutterer2021-07-271-81/+73
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc/user: make "verifying install" command portableAndrea Ippolito2021-07-261-6/+4
| | | | | | | | | | | | According to the linker man page libraries are searched in the following paths: LD_LIBRARY_PATH environment variable Paths in the cache file /etc/ld.so.cache /lib, /usr/lib, /lib64 and /usr/lib64 As we are not using LD_LIBRARY_PATH, we can rely on ldconfig as a fairly portable solution because it "creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib)". Tested on fedora 34, manjaro 2021.07, kubuntu 21.04 Signed-off-by: Andrea Ippolito <andrea.ippo@gmail.com>
* touchpad: remove two unused functionsPeter Hutterer2021-07-221-17/+0
| | | | | | These functions have been unused since 1668cd5e8158a4d98516bfc7432af78be934253f Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Mark some functions as printf-like to silence some compiler warningsPeter Hutterer2021-07-223-0/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Disable -Wmissing-field-initializersPeter Hutterer2021-07-221-0/+1
| | | | | | We really don't care about that one. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Silence compiler warnings for -Wformat-nonliteralPeter Hutterer2021-07-224-0/+15
| | | | | | | | In the various logging functions where we need to modify the format argument, disable the compiler warnings. Interestingly, GCC doesn't seem to mind those but building with clang unleashes pages of warnings. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Replace fallthrough comments with __attribute__((fallthrough))Peter Hutterer2021-07-228-192/+194
| | | | | | | This has recently been endorsed by the linux kernel, it should be good enough for us. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* util-list: restore list_for_each_safe() to be a single statementPeter Hutterer2021-07-222-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | 3d3d9b7f69b1119523becab3160378066db2e1c0 got rid of the need for a tmp argument for list_for_each_safe() but switched the loop to be a multiline statement. This could potentially cause bugs where the loop is used inside a block without curly braces, e.g. if (condition) list_for_each_safe() func() The assignment preceding the actual loop would result in the code reading as: if (condition) pos = .... list_for_each_safe() The actual list loop would be unconditional. Fix this by moving the initial assignment into an expression statement. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add a quirk for the X61 bezel buttonsPeter Hutterer2021-07-131-0/+5
| | | | | | Fixes #628 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add a quirk for the Purism Librem 14v1The_Observer2021-07-131-0/+7
| | | | | | | Clickpad that announces BTN_RIGHT Fixes #629 Signed-off-by: The_Observer <The_Observer@lindemann.space>
* quirks: add pressure range for Dell Latitude 7480Mohamed Elsharnouby2021-07-111-0/+5
| | | | | | | Pressing Ctrl/Shift on this model triggers light touches that causes random clicks. This doesn't occur on Windows 10 so adding this quirk to fix it Signed-off-by: sharno <sharnoby3@gmail.com>
* quirks: add volume rocker quirk for Lenovo Duet 7iThomas Stenhouse-Pyne2021-06-261-0/+6
| | | | Signed-off-by: Thomas Stenhouse-Pyne <tommpyne@gmail.com>
* evdev: remove device when it is goneThomas Weißschuh2021-06-212-0/+40
| | | | | | | | | | This was observed when running in device mode with: `libinput debug-events $EVENT_NODE` When removing the monitored device, the no "device removed" message was not shown. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
* quirks: add a quirk for the Huawei Matebook 2020 touchpadPeter Hutterer2021-06-211-0/+7
| | | | | | | | Clickpad that announces BTN_RIGHT https://bugzilla.redhat.com/show_bug.cgi?id=1972370 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: add a comment to explain how to actually edit the CIPeter Hutterer2021-06-172-0/+8
| | | | | | We tell users not to edit it, but don't tell them how to change it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* using secure functions safe_strdupluokai2021-06-156-8/+8
| | | | Signed-off-by: luokai <l18674732394.com>
* meson.build: bump to 1.18.900Peter Hutterer2021-06-101-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gestures: improve one finger hold detectionJosé Expósito2021-06-104-7/+169
| | | | | | | | | | | When one finger is used to hold, tiny pointer movement deltas can easily end the gesture. Add a movement threshold to avoid small movement, before or after the hold timeout, ending the gesture and make the hold-to-interact user interaction more reliable. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: move first_moved and first_mm upJosé Expósito2021-06-101-3/+3
| | | | | | | | Move the calculation of first_moved and first_mm up inside tp_gesture_detect_motion_gestures in order to be able to use their values in the one finger code path. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: always save touch informationJosé Expósito2021-06-101-3/+6
| | | | | | | When a single touch is used to hold or to move the pointer, save information about the touch. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* doc: update draw.io URLJosé Expósito2021-06-094-4/+4
| | | | | | | | The tool used to generate diagrams (draw.io) is now diagrams.net. Update the URL in the comments. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* doc: add touchpad gestures state machine diagramJosé Expósito2021-06-092-0/+12
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* doc: add docs for hold gesturesPeter Hutterer2021-06-091-0/+229
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* doc: note that gestures may be cancelledPeter Hutterer2021-06-091-3/+4
| | | | | | This has been in place forever, so let's note it in the docs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gestures: add quick hold implementationJosé Expósito2021-06-097-4/+202
| | | | | | | | | | | | | When 1 or 2 fingers are used to hold, use a faster timer to make the "hold to stop kinetic scrolling" user interaction feel more immediate. Also handle double tap and tap and drag interations to send only one hold gesture instead of two. Holding with 3 or 4 fingers remains the same to try to avoid callers missusing hold gestures to build their own tap implementation. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* tests: add hold gesture testsJosé Expósito2021-06-091-0/+222
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* tests: optionally hold in gesture test functionsJosé Expósito2021-06-093-14/+114
| | | | | | | | | Add an extra parameter to the common gesture test functions to allow to hold before performing the gesture. This parameter will be used by the hold tests allowing to share the code. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* tests: move existing gesture tests to functions to be able to reuse themJosé Expósito2021-06-091-317/+359
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: add hold gesture implementationJosé Expósito2021-06-099-33/+365
| | | | | | | | | | | Hold gestures are notifications about fingers on the touchpad. There is no coordinate attached to a hold gesture, merely the number of fingers. A hold gesture starts when the user places a finger on the touchpad and ends when all fingers are lifted. It is cancelled when the finger(s) move past applicable thresholds and trigger some other interaction like pointer movement or scrolling. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gesutures: allow to configure hold gesturesJosé Expósito2021-06-098-0/+346
| | | | | | | | | | | | Valgrind can be too slow to run some time based tests. In those cases, we need to disable hold gestures. Add the required functions to configure hold gestures: enable, disable, get default state and get current state. Keep them private as they are intended to be used only from the tests. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* libinput: add hold gesture public API and tool supportJosé Expósito2021-06-096-9/+131
| | | | | | | | Add hold gestures to the public API and the private functions to notify them. Also add hold gestures to debug-events and debug-gui. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: filter motion inside the gesture state machineJosé Expósito2021-06-093-11/+21
| | | | | | | | At the moment, every gesture is triggered by motion. In order to implement gestures not based on motion, like hold, it is required to filter the unwanted motion inside the gesture state machine so it transits to the correct states. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: use events to change between statesJosé Expósito2021-06-091-77/+277
| | | | | | Refactor the gesture state machine to emit events to change between states. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: handle pointer motion as an extra stateJosé Expósito2021-06-092-12/+31
| | | | | | | Refactor the gesture state machine to integrate pointer motion as an extra state of the state machine. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: refactor gesture enabledJosé Expósito2021-06-091-1/+7
| | | | | | Move the condition to check if gestures are enabled to its own function. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* gestures: add a function to know if there is pending pointer motionJosé Expósito2021-06-091-0/+17
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* libinput 1.18.01.18.0Peter Hutterer2021-06-021-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Update 50-system-asus.quirks to include Asus G15 Zephyrus quirk.Neev Parikh2021-06-011-0/+9
| | | | Signed-off-by: Neev Parikh <neev.v.parikh@gmail.com>
* libinput 1.17.9011.17.901Peter Hutterer2021-05-261-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>