summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
3 daysCI: bump to Fedora 40HEADmainPeter Hutterer2-51/+51
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1000>
10 daysAdd support for Matebook X Pro 2024 TouchpadPLTorrent1-0/+8
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/998>
2024-04-30quirks: add quirk for HP Haptics Touchpad.Marge Yang1-0/+6
This Touchpad is a pressure pad and needs the pressure handling disable. Signed-off-by: Marge Yang <marge.yang@synaptics.corp-partner.google.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/995>
2024-04-29Ring positions increase clockwiseJulian Orth1-1/+1
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/994>
2024-04-29gitlab CI: don't run MR pipelines in forksPeter Hutterer2-4/+8
Commit originally by Simon Ser in wayland/wayland-protocols!305. Currently our CI setup has a downside: for each push on a merge request, two pipelines are triggered. The first is triggered in the context of the forked repository, and the second is triggered in the context of the MR in the parent repository. Replace the workflow rules with the ones in the official docs [1], so that a branch pipeline isn't triggered when a MR exists for that branch. [1]: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/993>
2024-04-28Include COMPOSE and KANA keys in testsMartin Rys1-2/+12
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990>
2024-04-28Add definitions for LIBINPUT_LED_COMPOSE and LIBINPUT_LED_KANAMartin Rys2-1/+5
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/990>
2024-04-24quirks: increase MacBook touchpad AttrPalmSizeThresholdYogas Kung1-1/+1
2024-04-23quirks: add quirk for RazerBladeAdvancedLate2019Peter Hutterer1-0/+7
Generated by tools/razer-quirks-lister.py Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/992>
2024-04-23pad: implement strip support for non-Wacom tabletsPeter Hutterer1-1/+10
Wacom's strips are a log(2) value range which is a quirk specific to that vendor. On other devices let's normalize the value normally. Related #989 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/989>
2024-04-23pad: rename two helper functionsPeter Hutterer1-4/+4
This is the specific behavior of the Wacom strips and rings, so let's add wacom to the name. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/989>
2024-04-22quirks: add quirk for Lenovo Legion keyboard 048d:c103Maarten de Vries1-0/+9
2024-04-09fix: unnecessary braces and mistake in docTarcísio Eduardo Moreira Crocomo2-3/+3
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/988>
2024-04-09touchpad: add clickfinger button mapTarcísio Eduardo Moreira Crocomo16-34/+385
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/988>
2024-03-18touchpad: use boolean operator for booleansJosé Expósito1-1/+1
Detected while compiling with Sparse enabled. Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/987>
2024-03-18sparse: make some variables staticJosé Expósito7-7/+7
Fix warnings about variables that should be made static when compiling with Sparse enabled: $ CC=cgcc meson builddir Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/987>
2024-03-18test: replace an assert with double_gePeter Hutterer1-1/+1
Better test debugging this way. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986>
2024-03-18test: force the apple magicmouse to 1000dpiPeter Hutterer1-9/+4
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986>
2024-03-18test: remove some old compat code for kernel<4.5Peter Hutterer1-34/+1
Kernel 4.5 and libevdev 1.5 were released in 2016, this code is no longer necessary. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986>
2024-03-18test: remove a workaround for libevdev 1.2 and earlierPeter Hutterer1-4/+0
libevdev 1.3 was released in 2014. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/986>
2024-03-18util: slightly improve the trace() macroPeter Hutterer1-3/+3
Only one printf call instead of three, means better termination of the color code. And auto-append the newline while we're there and use the ANSI defines we have since added. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18test: fix two wrong timeout callsPeter Hutterer1-2/+2
This are tests with drag lock enabled, so our timeout needs to be be the tap and drag timeout (which is higher than the normal tap timeout). Only worked because they're similar enough that if there's a bit of a delay, the extra ms push us over the line. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18test: fix some tests that may cause pointer jumpsPeter Hutterer1-4/+4
Increase the number of events to move from one position to the next to avoid accidental pointer jumps. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18Revert "test: allow for substring matching in the various --filter- arguments"Peter Hutterer1-7/+1
Substring matching means it's impossible to select filters that are substrings of others, making it too painful to test one specific filter. This reverts commit a524cf97619f97c742f982065b6aa7698ca4779f. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18test: slightly increase the finger switch timeout waitPeter Hutterer1-1/+1
In touchpad_2fg_scroll_return_to_motion we sometimes fail because the timeout is too close to the actual timeout expiry, creating a race condition on whether the scroll stop event (triggered by the gesture end) is sent before or after the timeout expiry. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18test: add two more more libinput_dispatch() callsPeter Hutterer1-0/+2
We're writing a lot of events here, if the system isn't fast enough or (in the future) if we have a custom socket instead of a kernel device we might fill up the write buffer, causing the test to fail. Easy workaround is to dispatch more often to ensure the data is being read from the fd. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18util: fix error in mkdir_p if a parent directory fails to be createdPeter Hutterer1-1/+3
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18Move mkdir_p into a utility headerPeter Hutterer3-26/+55
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18test: add helpers for checking (negative) errnosPeter Hutterer4-6/+22
This way we get to see the actual error when it happens. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18util: add a LIST_INIT macroPeter Hutterer2-2/+3
Necessary for the case where we need a compile-time initialized list. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/984>
2024-03-18ci: bump to Fedora 39 and FreeBSD to 13.2Peter Hutterer2-59/+59
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/985>
2024-03-18tools: fix two black warningsPeter Hutterer2-2/+2
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/985>
2024-03-13quirks: Add a the onebutton apple touchpad quirk for an old MacBookPeter Hutterer1-0/+7
This is a 2006 Macbook, model A1181. Should fix the warning: event9 - appletouch: kernel bug: missing right button, assuming it is a clickpad. Related #981 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/983>
2024-03-12touchpad: disable the immediate scroll state if tapping is enabledPeter Hutterer1-4/+2
On a touchpad without gestures we would take a 2-finger touch as immediate start to a 2-finger scroll gesture. This effectively removes the 1mm threshold we otherwise have before scrolling is assumed to have started. If tapping is enabled and a user triggers a small motion event this results in scroll events being sent before the two-finger tap. Closes #981 Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/982>
2024-03-06Add quirk for the Legion Slim 7 Gen 8 keyboardDerrick Timmermans1-0/+7
Signed-off-by: Derrick Timmermans <derrick.timmermans@outlook.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/980>
2024-02-29quirks: add quirk for Dell Precision 5480 touchpadJosé Expósito1-0/+8
The Dell Precision 5480 has a large touchpad without any visible markers for the touchpad buttons. Since the ModelTouchpadVisibleMarker quirk is enabled by default for all Dell touchpads, the middle button area ends up being too small. Disable the quirk for this specific model. Closes: #976 Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/979>
2024-02-28Add libinput_device_get_id_bustype()José Expósito6-1/+33
Allow to get the device bus type ID in addition to its vid and pid. Closes: https://gitlab.freedesktop.org/libinput/libinput/-/issues/975 Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/977>
2024-02-28CONTRIBUTING: Add CONTRIBUTING.mdJosé Expósito1-0/+4
Add a very basic CONTRIBUTING.md file with a link to the documentation. Closes: #974 Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/978>
2024-02-28doc/user: Document "Closes" and "Fixes" tagsJosé Expósito1-0/+11
Describe how the tags should be used. The guidelines for the "Fixes" tag are taken from the Linux kernel documentation [1][2]. [1] https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#using-reported-by-tested-by-reviewed-by-suggested-by-and-fixes [2] https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#describe-changes Closes: #974 Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/978>
2024-02-28CI: only check the MR if we're in a merge request pipelinePeter Hutterer2-0/+6
2024-02-20tablet: add API for relative dialsJoshua Goins19-12/+735
Some tablets such as those in the XP-PEN PRO series use "dials" which are actually scrollwheels and emit EV_REL events. These should not be emulated as rings (which are absolute) so we must expose them as a new tablet event. Adds LIBINPUT_EVENT_TABLET_PAD_DIAL that work largely identical as our high-resolution wheel events (i.e. the values are in multiples or fractions of of 120). Currently supports two dials. This is a lot of copy/paste from the ring axes because the interface is virtually identical. The main difference is that dials give us a v120 value in the same manner as our scroll axes. Notes: - REL_DIAL is mutually exclusive with REL_WHEEL, we assume the kernel doesn't (at this point) give us devices with both. If this changes for devices with three dials (wheel + hwheel + dial) we need to add code for that. - REL_DIAL does not have a high-resolution axis and we assume that any device with REL_WHEEL_HI_RES will also have REL_HWHEEL_HI_RES (if the second wheel exists). - With dials being REL_DIAL or REL_WHEEL there is no possibility of detecting a finger release (the kernel does not route EV_RELs with a value of zero). Unless this is implemented via a side-channel - and it doesn't look like any hardware that supports dials does that - we cannot forward any information here. So unlike absolute rings we cannot provide a source information here. Closes #600 Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/967>
2024-02-20test: only expect one button event from the intuos-like testPeter Hutterer1-1/+1
BTN_0 is the only one guaranteed to exist (otherwise we skip the test) so let's ensure we have at least one event - all the others will fail if we don't get the right event sent. This enables the test to run against devices that only have one button. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/967>
2024-02-19Recognizing Framework 16 keyboard modules as internal keyboardsJosip Medved1-0/+6
2024-02-19doc: fix end-of-file in the state machine SVGPeter Hutterer1-1/+1
Picked up by the pre-commit hook
2024-02-14quirks: tighten the match for the Graviton N15i touchpadPeter Hutterer1-0/+1
Other systems use the same touchpad but without physical buttons (e.g. SpeedMind M-BOOK) and obviously the various systems using the 5288 touchpad, see commit d1f274c7. Let's tighten this quirk to just the Graviton only. Closes #970 Fixes 8163b552be23ef3f4082775649bb12a3f6162df6 Related !957
2024-02-12Added quirks for TongFang/Uniwill touchpad and ITE keyboardBogdan Mircea2-0/+18
2024-02-06doc: drop permissions to 644 for the gesture state machine SVGPeter Hutterer1-0/+0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2024-02-02quirks: Add Lenovo's Ideapad Gaming 3 white backlit keyboard as an internal ↵Theluga1-0/+8
keyboard
2024-02-02doc/user: note the requirement to apply for gitlab fork permissionsPeter Hutterer1-1/+6
2024-02-02triage-policies: add a bugbot command to close issue in favour of an MRPeter Hutterer1-0/+17