summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Improve documentation of the custom acceleration profileHEADmasterYinon Burgansky2023-04-261-16/+77
|
* xf86-input-libinput 1.3.0xf86-input-libinput-1.3.0Peter Hutterer2023-04-042-2/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add support for the scroll movement type of the custom acceleration profileYinon Burgansky2023-02-183-9/+69
| | | | | | Adds new properties and xorg.conf entries for setting the scroll acceleration function's points and step. The new xorg.conf entries are AccelPointsScroll, AccelStepScroll.
* Correct the coordinate transform parameters for an absolute pointerShin-myoung-serp2023-02-011-2/+2
| | | | Fixes #53
* Add support for custom pointer accelerationPeter Hutterer2023-01-099-21/+1187
| | | | | | | | | | | | | | | | | | | | | | | | Adds new properties and xorg.conf entries for setting the acceleration function's points and step. `AccelProfile` option can now accept `custom` value. Add 4 new options which only apply when `AccelProfile` is `custom`: - Add `AccelPointsFallback` option for setting the points of the Fallback acceleration function. Points values are represented by a space-separated list, e.g. "0.0 1.0 2.4 2.5". - Add `AccelStepFallback` option for setting the step of the Fallback acceleration function. When a step of 0.0 is provided, libinput default Fallback acceleration function is used. - Add `AccelPointsMotion` and `AccelStepMotion` options, which are equivalent to `AccelPointsFallback` and `AccelStepFallback` options, but apply to the Motion acceleration function. See libinput documentation for a detailed explanation of custom pointer acceleration.
* configure.ac: inputproto 2.4 is optionalPeter Hutterer2022-12-091-1/+2
| | | | | | | Missing else condition in PKG_CHECK_MODULES caused configure to bail out where 2.4 wasn't available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: enable gitlab's builtin static analysisAlan Coopersmith2022-07-231-0/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* gitlab CI: enable commit & merge request checksAlan Coopersmith2022-07-231-5/+46
| | | | | | Uses ci-fairy from freedesktop/ci-templates Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Better explain HorizontalScrolling.Hong Xu2022-04-271-4/+4
|
* Add meson build systemPeter Hutterer2022-01-252-0/+152
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* man: use @VERSION@ for the driver versionPeter Hutterer2022-01-252-1/+4
| | | | | | Makes use of meson easier which requires @ as pre/suffix for variables. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* man: replace the various suffixes with their actual numbersPeter Hutterer2022-01-251-11/+11
| | | | | | | | | | | These don't change, iirc they exist because of some unixes having different man pages but at this point really on Solaris is left and that uses the same suffixes as everyone else. And the __xservername__ is a leftover from the Xfree86 vs Xorg days - if you're still running Xfree86, you're not using this driver. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Drop HAVE_CONFIG_H, we always have it definedPeter Hutterer2022-01-251-2/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-libinput 1.2.1xf86-input-libinput-1.2.1Peter Hutterer2022-01-241-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix a compiler warningPeter Hutterer2022-01-241-1/+3
| | | | | | | | | | | xf86libinput.c:2457:89: warning: passing argument 1 of ‘libinput_event_pointer_get_axis_source’ from incompatible pointer type [-Wincompatible-pointer-types] No function changes due to the binary layout of libinput events but let's not rely on that. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Build xz tarballs instead of bzip2Alan Coopersmith2022-01-161-1/+1
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix spelling/wording issuesAlan Coopersmith2022-01-163-3/+3
| | | | | | | Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Fix copy-paste error in LibinputInitAccelProperty checking available ↵Luna Nova2021-12-181-1/+1
| | | | profiles against adaptive/flat
* Quietly check for the _source optionPeter Hutterer2021-11-241-1/+1
| | | | | | | | | xf86CheckStrOption returns the same value but doesn't mark it as used in the server and, more importantly, doesn't spam the log with (**) Option "_source" "server/udev" messages. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Make XIPropertyValuePtr verification consistentJosé Expósito2021-11-171-3/+3
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* Add an option to disable high-resolution wheel scrollJosé Expósito2021-11-143-20/+108
| | | | | | | | | | | | | | | Starting on libinput 1.19 pointer axis events have been deprecated in favor of their scroll equivalents, including support for high-resolution wheel scroll. While it is recommended to handle the new events, some applications and/or frameworks might not be ready at the moment. Provide an option to discard high-resolution wheel scroll events. Fix #41 Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* man: fix horizontal scroll property nameJosé Expósito2021-11-101-1/+1
| | | | Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* xf86-input-libinput 1.2.0xf86-input-libinput-1.2.0Povilas Kanapickas2021-09-191-1/+1
| | | | Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
* Rename HAS_GESTURES to HAVE_GESTURESPeter Hutterer2021-09-161-9/+9
| | | | | | | HAVE_FOO is generally used everywhere (see HAVE_CONFIG_H) so let's keep this consistent. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab-ci: Configure xorgproto build from sourcePovilas Kanapickas2021-09-162-1/+11
| | | | | We need newer xorgproto than what's in fedora as we depend on inputproto 2.3.99.1 or newer.
* Require inputproto 2.4 to build the gesture supportPovilas Kanapickas2021-09-162-0/+5
| | | | Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
* Use the new v120 API from libinput if availablePeter Hutterer2021-08-062-16/+101
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Get scroll source in the event handlerJosé Expósito2021-08-041-5/+8
| | | | | | | | | | | | Where libinput supports high-resolution scroll events, the scroll source is encoded in the event type. Get the scroll source in xf86libinput_handle_event to facilitate the migration. Refactor, no functional changes. Signed-off-by: José Expósito <jose.exposito89@gmail.com>
* Upgrade the default scroll distance to 120Peter Hutterer2021-08-041-3/+6
| | | | | | | | | | | | | | | | | | This is just a number, to be used as divider and shouldn't have any effect in correctly written clients. With the high-res scrolling coming up however, we have a few devices where the dist cannot be expressed as an integer fraction of 15, so let's up it to 120 because we know all hardware wheels have to be an integer fraction of that that, thanks to Microsoft's API requirements. For non-wheel scrolls we need to now map into the new range. Previously we just passed the scroll events on from the touchpad/button scrolling, meaning a vdist of 15 meant 15 "libinput pixels" of scrolling resulted in a logical wheel click. Now that we have 120 as vdist, we need to times the input data by 8 to keep the same proportions. See 39b0bb4585106a56a51236d8e9843b2da8d745a5 for the previous revert. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Implement support for touchpad gesturesPovilas Kanapickas2021-07-051-1/+122
|
* xf86-input-libinput 1.1.0xf86-input-libinput-1.1.0Peter Hutterer2021-06-241-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Implement a touchpad scroll distance propertyPeter Hutterer2021-05-053-2/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | To be used for touchpads and continuous (i.e. button-based scrolling). libinput provides us with pixel data for finger-based and button-based scrolling but the X server does support this - XI2.1 smooth scrolling is merely centered around a logical scroll click (defined as "increment"), with smooth scrolling being a fraction of that increment. For example, in the old synaptics driver that value was in device-specific units and thus different for every device. The increment is a constant value set in the ScrollClass and cannot be changed at device runtime. So we simply initialize with a random default (15, because that works well for wheels) and then scale our pixel delta in to that range. With the default value, a 15 pixel movement would result in a logical scroll click, if the distance is set to 30 the users has to move 30 pixels to trigger that scroll click. Pixel here being defined as the deltas that libinput provides to us. From the client's perspective nothing changes, the increment is still the same. Range checks are quite restrictive, this option is supposed to improve usability, not as a workaround around other bugs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix a spacing issuePeter Hutterer2021-05-051-16/+16
| | | | | | yay for copy/paste proliferation Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-libinput 1.0.1xf86-input-libinput-1.0.1Peter Hutterer2021-04-161-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Make sure the device is valid when setting the tap button mapPeter Hutterer2021-04-091-2/+6
| | | | | | Fixes #34 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-libinput 1.0.0xf86-input-libinput-1.0.0Peter Hutterer2021-04-061-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to use Fedora 33Peter Hutterer2021-04-061-3/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Remove trailing whitespacesPeter Hutterer2021-04-064-6/+6
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Switch to the real MIT licensePeter Hutterer2021-03-249-155/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a copy/paste error, the COPYING file and subsequently created files with the same content referred to the "Historical Permission Notice and Disclaimer - sell variant", not the proper MIT license. Replace with the proper MIT (Expat) license and add the use SPDX license identifiers. Acks below are from contributors with substantial changes, collected in MR !19 or via private email correspondence. https://gitlab.freedesktop.org/xorg/driver/xf86-input-libinput/-/merge_requests/19 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Dorian Stoll <dorian.stoll@tmsp.io> Acked-by: Jonas Ådahl <jadahl@gmail.com> Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Acked-by: Evangelos Foutras <evangelos@foutrelis.com> Acked-by: Niklas Haas <git@haasn.xyz> Acked-by: Olivier Fourdan <ofourdan@redhat.com> Acked-by: David Rosca <nowrep@gmail.com> Acked-by: Lyude Paul <lyude@redhat.com> Acked-by: Keith Packard <keithp@keithp.com> Acked-by: Alan Coopersmith <alan.coopersmith@oracle.com> Acked-by: Michel Dänzer <michel@daenzer.net> Acked-by: Tim Writer <tim.writer@amd.com> Acked-by: Friedrich Schöller <code@schoeller.se> Acked-by: Mikhail Konev <k.mvc@ya.ru> Acked-by: Martin Pieuchot <mpi@openbsd.org>
* Lift canceled touch inputsDorian Stoll2020-11-041-1/+2
| | | | | | | | | | If a touch input gets turned into a palm (by setting ABS_MT_TOOL_TYPE to MT_TOOL_PALM), libinput will emit a cancel event instead of the normal up event. The xorg wrapper needs to be able to handle a canceled touch and lift it, otherwise these inputs will never get lifted and will stick around forever. Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
* Remove extraneous semicolonPovilas Kanapickas2020-10-191-1/+1
|
* Remove unused btnmap variablesPovilas Kanapickas2020-10-191-7/+0
|
* Bump the server requirement to 1.19 to get rid of a bunch of ifdefsPeter Hutterer2020-05-192-47/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Bump the libinput requirement to 1.11Peter Hutterer2020-05-192-13/+1
| | | | | | Released June 2018, that should be recent enough. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-libinput 0.30.0xf86-input-libinput-0.30.0Peter Hutterer2020-05-191-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: update to latest CI templatesPeter Hutterer2020-05-191-36/+27
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* gitlab CI: bump to Fedora 32Peter Hutterer2020-05-191-4/+4
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Implement support for scroll button locksPeter Hutterer2019-10-114-2/+124
| | | | | | | | Add a boolean option/property to enable/disable the scroll button lock. Where enabled, the button can be clicked and released as opposed to having to be held down. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* xf86-input-libinput 0.29.0xf86-input-libinput-0.29.0Peter Hutterer2019-08-121-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Add basic Gitlab CI for testing the buildPeter Hutterer2019-08-121-0/+64
| | | | | | | | This merely tests against the devel package in Fedora, not against the xserver from git. Should be enough, the driver here doesn't change enough to need the git builds. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>