platform/upstream/libinput.git
5 years agofallback: add support for ABS_MT_TOOL_TYPE for touch screens
Peter Hutterer [Fri, 13 Jul 2018 06:08:54 +0000 (16:08 +1000)]
fallback: add support for ABS_MT_TOOL_TYPE for touch screens

Cancel any touches that trigger MT_TOOL_PALM.

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/25

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agotest: handle ABS_MT_TOOL_TYPE from the litest devices
Peter Hutterer [Fri, 13 Jul 2018 06:24:04 +0000 (16:24 +1000)]
test: handle ABS_MT_TOOL_TYPE from the litest devices

We want to autoreplace this value where possible but not scale it to min/max,
this is effectively an enum. The same is true for slot/tracking id, so let's
add it here too.

Because it's an enum and 99% of the cases require MT_TOOL_FINGER, we always
fall back to that instead of using the axis_defaults that we use for other
axes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agotest: add test helpers for touch sequence parts
Peter Hutterer [Fri, 13 Jul 2018 06:04:35 +0000 (16:04 +1000)]
test: add test helpers for touch sequence parts

The necessary helpers to test for a touch event + one touch frame and the
extra case for the TOUCH_CANCEL in is_touch_event

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agofallback: move flushing MT events to a helper function
Peter Hutterer [Fri, 13 Jul 2018 05:45:22 +0000 (15:45 +1000)]
fallback: move flushing MT events to a helper function

No functional changes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agofallback: change a list of if conditions to a switch statement
Peter Hutterer [Fri, 13 Jul 2018 05:41:59 +0000 (15:41 +1000)]
fallback: change a list of if conditions to a switch statement

This used to do a lot more but now it can be handled as simple switch
statement. Bonus: we get to log a bug if we ever get here in NONE state.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agofallback: move the mt slot state struct/enum here
Peter Hutterer [Fri, 13 Jul 2018 05:22:23 +0000 (15:22 +1000)]
fallback: move the mt slot state struct/enum here

Not needed by the more generic evdev header

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: mark the touchpads page as orphan
Peter Hutterer [Fri, 3 Aug 2018 01:15:31 +0000 (11:15 +1000)]
doc/user: mark the touchpads page as orphan

Only one link leads to it and it doesnt (right now) fit into the hierarchy.
Let's get rid of the sphinx warning.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: add custom 404 pages for the old links
Peter Hutterer [Fri, 3 Aug 2018 01:04:18 +0000 (11:04 +1000)]
doc/user: add custom 404 pages for the old links

Switching from doxygen to sphinx broke a bunch of links because doxygen used
whatever the argument to @page was - and that usually had underscores. Sphinx
uses filenames (which use dashes) so now we have a bunch of old links going to
a 404. For the transition period at least, insert a custom 404 page for each
of those to tell users this doesn't exist anymore.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoRevert "doc/user: add a custom 404 page"
Peter Hutterer [Fri, 3 Aug 2018 00:13:09 +0000 (10:13 +1000)]
Revert "doc/user: add a custom 404 page"

Nope, doesn't work, our server doesn't support htaccess.

This reverts commit 548e0eb98b46e328a64215323962c11df17b49ce.

5 years agoutil: remove now-unused helper functions
Peter Hutterer [Thu, 2 Aug 2018 05:02:18 +0000 (15:02 +1000)]
util: remove now-unused helper functions

Obsolete with the switch to the device quirks

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: add a custom 404 page
Peter Hutterer [Thu, 2 Aug 2018 01:01:50 +0000 (11:01 +1000)]
doc/user: add a custom 404 page

Things moved around, so let's have a custom 404 page where we can put
information in. This ist the barebones version, not sure if .htaccess is
supported.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc: drop the doxygen conversion script
Peter Hutterer [Wed, 1 Aug 2018 23:52:59 +0000 (09:52 +1000)]
doc: drop the doxygen conversion script

It's really not that good, so no point to keep it around

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: rename filenames with underscores to dashes
Peter Hutterer [Wed, 1 Aug 2018 23:44:01 +0000 (09:44 +1000)]
doc/user: rename filenames with underscores to dashes

Everything else is, let's be consistent here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: swap some note out with hint
Peter Hutterer [Wed, 1 Aug 2018 23:37:54 +0000 (09:37 +1000)]
doc/user: swap some note out with hint

Because why not...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: add a hack to get to the git version
Peter Hutterer [Wed, 1 Aug 2018 23:30:57 +0000 (09:30 +1000)]
doc/user: add a hack to get to the git version

meson doesn't have configuration_data() in vcs_tag so we can only replace one
string. sphinx cannot include things in-line.

Since we want the git version to be replaced in random places, we need to put
it into rst_prolog in conf.py - but that's where we neet to replace other
things too. Work around this by generating a mini python module that returns
the git version, then call that in conf.py.

Side-bonus: we now have access to the full commit and the abbreviated commit.
Not that anything actually uses this...

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: drop the old page-hierarchy page
Peter Hutterer [Wed, 1 Aug 2018 22:47:06 +0000 (08:47 +1000)]
doc/user: drop the old page-hierarchy page

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: use extlink for a common commit links
Peter Hutterer [Wed, 1 Aug 2018 07:12:38 +0000 (17:12 +1000)]
doc/user: use extlink for a common commit links

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: more fixes including adding a device-types section
Peter Hutterer [Wed, 1 Aug 2018 00:34:22 +0000 (10:34 +1000)]
doc/user: more fixes including adding a device-types section

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: tidy up the development page
Peter Hutterer [Wed, 1 Aug 2018 00:16:17 +0000 (10:16 +1000)]
doc/user: tidy up the development page

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agoREADME: drop a @ref in favor of the full link
Peter Hutterer [Wed, 1 Aug 2018 23:42:57 +0000 (09:42 +1000)]
README: drop a @ref in favor of the full link

No doxygen leftovers in README anymore, exspecially now that we don't use it
for doxygen anymore.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agofallback: add another debug message for tablet-mode keyboard suspend
Peter Hutterer [Wed, 1 Aug 2018 05:47:03 +0000 (15:47 +1000)]
fallback: add another debug message for tablet-mode keyboard suspend

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agofallback: change a debug message to be less ambiguous
Peter Hutterer [Wed, 1 Aug 2018 05:28:58 +0000 (15:28 +1000)]
fallback: change a debug message to be less ambiguous

"activated" sounds like we're disabling things here, but we're just pairing
the two devices

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 years agodoc/user: more documentation cleanups and fixes
Peter Hutterer [Tue, 31 Jul 2018 08:17:48 +0000 (18:17 +1000)]
doc/user: more documentation cleanups and fixes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: some rewording and improvements
Peter Hutterer [Tue, 31 Jul 2018 06:03:49 +0000 (16:03 +1000)]
doc/user: some rewording and improvements

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agomeson.build: fix name of the measure touchpad-tap script
Peter Hutterer [Tue, 31 Jul 2018 03:00:38 +0000 (13:00 +1000)]
meson.build: fix name of the measure touchpad-tap script

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: update the 'no package found' link to the meson version post
Peter Hutterer [Tue, 31 Jul 2018 00:50:57 +0000 (10:50 +1000)]
doc/user: update the 'no package found' link to the meson version post

Now that we dropped autotools anyway, it's better to link to the meson version
of that blog post.

Related #96

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: building - promote dependencies to a higher-level section
Peter Hutterer [Tue, 31 Jul 2018 00:49:47 +0000 (10:49 +1000)]
doc/user: building - promote dependencies to a higher-level section

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: the SELinux section doesn't apply to modern meson
Peter Hutterer [Tue, 31 Jul 2018 00:48:34 +0000 (10:48 +1000)]
doc/user: the SELinux section doesn't apply to modern meson

Related #96

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: re-do the conditional build section
Peter Hutterer [Tue, 31 Jul 2018 00:42:06 +0000 (10:42 +1000)]
doc/user: re-do the conditional build section

Related #96

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: drop the autotools builds
Peter Hutterer [Tue, 31 Jul 2018 00:25:01 +0000 (10:25 +1000)]
doc/user: drop the autotools builds

Anyone who's still on <= 1.8 either knows how to build it already or relies on
a distribution to do that for them. Drop the section.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: add a note on meson's dependency() in the building docs
Peter Hutterer [Tue, 31 Jul 2018 00:22:31 +0000 (10:22 +1000)]
doc/user: add a note on meson's dependency() in the building docs

See #96

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: mesonconf is meson configure
Peter Hutterer [Tue, 31 Jul 2018 00:17:59 +0000 (10:17 +1000)]
doc/user: mesonconf is meson configure

Listed in #96

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotablet: clear tablet history on tool contact change
jeff [Mon, 30 Jul 2018 17:03:03 +0000 (13:03 -0400)]
tablet: clear tablet history on tool contact change

On some ELAN tablets we get a coordinate jump in the same frame that we put
the tip down. The existing axis smoothing causes that jump to be somewhere in
the middle between the previous and the next coordinates, causing a small
stroke from the smoothed position to the next. Prevent this by resetting the
history on tip down/up so we always take that coordinate.

Fixes #94

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agolibinput 1.11.901 1.11.901
Peter Hutterer [Mon, 30 Jul 2018 05:57:08 +0000 (15:57 +1000)]
libinput 1.11.901

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc/user: add a page detailing what configuration toggles are available
Peter Hutterer [Sat, 28 Jul 2018 09:35:36 +0000 (19:35 +1000)]
doc/user: add a page detailing what configuration toggles are available

High level view only but at least it's a link we can point people to.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodox: switch to sphinx for the user-visible documentation
Peter Hutterer [Tue, 10 Jul 2018 07:32:35 +0000 (17:32 +1000)]
dox: switch to sphinx for the user-visible documentation

This is a large commit because it's difficult to split this up and we don't
care about bisecting here anyway.

doxygen is going to produce the API documentation only
sphinx is going to produce the prose user (and a bit of developer) documentation.

The source split is doc/api and doc/user.

Steps performed:
- run the doxygen-to-sphinx.sh script to convert all .dox sources to .rst
- manually fixed the .rst to render correctly
- add a few extra .rst documents to generate the right hierarchy
- hook up sphinx-build in meson
- add a new @mainpage for doxygen more aimed at developers

For the build directory:
- sphinx produces /Documentation
- doxygen now produces /api/

These need to be manually combined in the wayland-web repo, meson doesn't
support subdirectories as output paths within the build dir and the
documentation doesn't need to be installed anywhere.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoGitLab CI: print out the image age in seconds
Peter Hutterer [Mon, 30 Jul 2018 02:04:05 +0000 (12:04 +1000)]
GitLab CI: print out the image age in seconds

Helps with debugging purposes

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoGitlab CI: set DEBIAN_FRONTEND noninteractive for the Ubuntu images
Peter Hutterer [Mon, 30 Jul 2018 00:51:36 +0000 (10:51 +1000)]
Gitlab CI: set DEBIAN_FRONTEND noninteractive for the Ubuntu images

Because Godot doesn't care about tzdata, so waiting for him is pointless.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoAdd the buildreqs for sphinx-build
Peter Hutterer [Fri, 27 Jul 2018 07:31:14 +0000 (17:31 +1000)]
Add the buildreqs for sphinx-build

Separate commit so we can prep the containers for the real PR and thus test if
something break.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: split the graphs into a separate array for re-use
Peter Hutterer [Wed, 25 Jul 2018 22:32:31 +0000 (08:32 +1000)]
doc: split the graphs into a separate array for re-use

We need this in the sphinx documentation.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: move the @verbatim start to the list item
Peter Hutterer [Tue, 24 Jul 2018 05:01:39 +0000 (15:01 +1000)]
doc: move the @verbatim start to the list item

This is mostly for sphinx' parsing benefit, doxygen doesn't need it and
renders the same either way.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: device-quirks: redo the model quirks <dl> for sphinx' benefit
Peter Hutterer [Thu, 26 Jul 2018 01:22:17 +0000 (11:22 +1000)]
doc: device-quirks: redo the model quirks <dl> for sphinx' benefit

sphinx only supports one line of <dt> content, so we have to compress these.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: a few replacements to make sphinx happy/prettier
Peter Hutterer [Tue, 24 Jul 2018 01:25:16 +0000 (11:25 +1000)]
doc: a few replacements to make sphinx happy/prettier

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: refer to "the libinput documentation" in a few @see cases
Peter Hutterer [Fri, 27 Jul 2018 04:01:35 +0000 (14:01 +1000)]
doc: refer to "the libinput documentation" in a few @see cases

This is in preparation for a change to sphinx as the user-visible
documentation. Ideally we could cross-link between the two but that's tricky
to do automatically. Linking to the html pages/anchors directly works fine but
risks the links going stale, especially while the documentation is still in
flux.

Having a generic "refer to the libinput documentation" is a bit of a cop-out
least this way the links cannot go stale.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: drop a few unnecessary @ref
Peter Hutterer [Fri, 27 Jul 2018 05:51:31 +0000 (15:51 +1000)]
doc: drop a few unnecessary @ref

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: enable warnings in doxygen
Peter Hutterer [Wed, 25 Jul 2018 22:50:13 +0000 (08:50 +1000)]
doc: enable warnings in doxygen

We want to see missed links

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: copy some bits of the tablet docs to doxygen
Peter Hutterer [Fri, 27 Jul 2018 03:58:40 +0000 (13:58 +1000)]
doc: copy some bits of the tablet docs to doxygen

So it shows up in the doxygen contents. These are the bits that are mostly of
interest to developers, we might remove the user documentation entry later,
but let's leave it there for now.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agogitlab-ci: use skopeo to check on container images
Benjamin Tissoires [Mon, 23 Jul 2018 11:01:17 +0000 (13:01 +0200)]
gitlab-ci: use skopeo to check on container images

this allows to replace complex curl queries with simpler commands.

We need a newer minimalist image with skopeo in addition to jq and
curl.

Also, I am currently not relying on skopeo to delete the image as I am
not so sure we will get the same cleanup than with the current sha method
and also:
https://bugzilla.redhat.com/show_bug.cgi?id=1481196

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
6 years agodoc: move the Architecture blurb to the 'what is libinput' page
Peter Hutterer [Wed, 25 Jul 2018 23:18:29 +0000 (09:18 +1000)]
doc: move the Architecture blurb to the 'what is libinput' page

The vast majority of ppl reading the README is unlikely to care about this,
but they do care about the Wayland vs X.Org situation so let's split this up.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotools: drop two unused imports
Peter Hutterer [Thu, 26 Jul 2018 05:05:40 +0000 (15:05 +1000)]
tools: drop two unused imports

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: we don't need the Namespaces doxygen page
Peter Hutterer [Thu, 26 Jul 2018 03:56:15 +0000 (13:56 +1000)]
doc: we don't need the Namespaces doxygen page

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoutil: fix a ubsan complaint about undefined left-shift
Peter Hutterer [Thu, 26 Jul 2018 02:06:10 +0000 (12:06 +1000)]
util: fix a ubsan complaint about undefined left-shift

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotest: properly release a few leaking litest device
Peter Hutterer [Thu, 26 Jul 2018 00:38:16 +0000 (10:38 +1000)]
test: properly release a few leaking litest device

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotest: release a few leaking udev devices
Peter Hutterer [Thu, 26 Jul 2018 00:25:52 +0000 (10:25 +1000)]
test: release a few leaking udev devices

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: fix erroneous </dt>
Peter Hutterer [Thu, 26 Jul 2018 01:39:47 +0000 (11:39 +1000)]
doc: fix erroneous </dt>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotest: supress another bash warning
Peter Hutterer [Wed, 25 Jul 2018 23:51:54 +0000 (09:51 +1000)]
test: supress another bash warning

Failing the leftover-rules check in the valgrind stage because

==1491== Invalid read of size 16
==1491==    at 0x5320AE8: __wcsnlen_sse4_1 (in /usr/lib64/libc-2.27.so)
==1491==    by 0x5310AD1: wcsrtombs (in /usr/lib64/libc-2.27.so)
==1491==    by 0x1AA403: ??? (in /usr/bin/bash)
==1491==    by 0x1AB3E3: glob_filename (in /usr/bin/bash)
==1491==    by 0x179FF1: shell_glob_filename (in /usr/bin/bash)
==1491==    by 0x1752CD: ??? (in /usr/bin/bash)
==1491==    by 0x14C05F: ??? (in /usr/bin/bash)
==1491==    by 0x14E2E3: execute_command_internal (in /usr/bin/bash)
==1491==    by 0x14FBC5: execute_command (in /usr/bin/bash)
==1491==    by 0x137598: reader_loop (in /usr/bin/bash)
==1491==    by 0x135D38: main (in /usr/bin/bash)
==1491==  Address 0x5651fd0 is 32 bytes before a block of size 128 in arena "client"

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: fix the url where to file a new bug
Peter Hutterer [Wed, 25 Jul 2018 11:09:12 +0000 (21:09 +1000)]
doc: fix the url where to file a new bug

6 years agodoc: add a warning note that the reporting-bugs instructions do matter
Peter Hutterer [Wed, 25 Jul 2018 11:14:02 +0000 (21:14 +1000)]
doc: add a warning note that the reporting-bugs instructions do matter

And remove the paragraph below that states the same thing.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: point to libinput --version
Peter Hutterer [Wed, 25 Jul 2018 11:12:37 +0000 (21:12 +1000)]
doc: point to libinput --version

This will fail pre 1.8 but oh well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: replace a few <b> with markdown's **
Peter Hutterer [Tue, 24 Jul 2018 04:45:00 +0000 (14:45 +1000)]
doc: replace a few <b> with markdown's **

At least where possible, doxygen doesn't parse lists starting with ** as
emphasized.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: replace html lists with markdown ones
Peter Hutterer [Tue, 24 Jul 2018 04:43:20 +0000 (14:43 +1000)]
doc: replace html lists with markdown ones

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: reporting-bugs: use evemu-record as link text, not evemu
Peter Hutterer [Tue, 24 Jul 2018 03:09:48 +0000 (13:09 +1000)]
doc: reporting-bugs: use evemu-record as link text, not evemu

Because that's the tool we're using

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: single ` is enough for code highlighting
Peter Hutterer [Tue, 24 Jul 2018 03:01:23 +0000 (13:01 +1000)]
doc: single ` is enough for code highlighting

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: indent all @note continuation lines
Peter Hutterer [Tue, 24 Jul 2018 02:30:07 +0000 (12:30 +1000)]
doc: indent all @note continuation lines

This isn't required by doxygen but for a potential switch to RTD/sphinx
(see #95) it helps having this set up correctly.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoREADME: indent the links that belong to list items
Peter Hutterer [Tue, 24 Jul 2018 05:03:09 +0000 (15:03 +1000)]
README: indent the links that belong to list items

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: document the device quirks
Peter Hutterer [Fri, 20 Jul 2018 05:30:00 +0000 (15:30 +1000)]
doc: document the device quirks

Add some documentation for the most common quirks or at least the ones that
the user may eventually see or have to set. Drop the git commit hash into the
docs to make sure it's spelled out that the quirks are only valid for that
commit. Adding something with @include* requires the EXAMPLE_PATH to be set.

Doxygen doesn't parse markdown in @includedoc so we have to insert the commit
as normal HTML tag.

Related to https://gitlab.freedesktop.org/libinput/libinput/issues/87

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: fix ref to device-quirks
Peter Hutterer [Tue, 24 Jul 2018 03:15:42 +0000 (13:15 +1000)]
doc: fix ref to device-quirks

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: replace <a href> links with the doxygen markdown equivalent
Peter Hutterer [Tue, 24 Jul 2018 01:56:13 +0000 (11:56 +1000)]
doc: replace <a href> links with the doxygen markdown equivalent

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: replace <pre> with @verbatim
Peter Hutterer [Tue, 24 Jul 2018 01:55:00 +0000 (11:55 +1000)]
doc: replace <pre> with @verbatim

Be more consistent here

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: add a section name to seats-overview
Peter Hutterer [Tue, 24 Jul 2018 01:44:19 +0000 (11:44 +1000)]
doc: add a section name to seats-overview

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoGitlab CI: properly define empty dependencies for the wayland-web hook
Peter Hutterer [Mon, 23 Jul 2018 11:21:31 +0000 (21:21 +1000)]
Gitlab CI: properly define empty dependencies for the wayland-web hook

This needs to be an empty array, see the "artifacts:paths" documentation for
an example
https://docs.gitlab.com/ee/ci/yaml/#when-a-dependent-job-will-fail

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoUpdate FreeBSD package cache in CI
Greg V [Mon, 23 Jul 2018 10:44:41 +0000 (13:44 +0300)]
Update FreeBSD package cache in CI

Should fix #93

6 years agotest: add --gen-suppressions=all to the valgrind run
Peter Hutterer [Mon, 23 Jul 2018 03:59:39 +0000 (13:59 +1000)]
test: add --gen-suppressions=all to the valgrind run

Because if we have a heisenbug that can't be reproduced on other machines,
having the suppression output in the log can save a lot of time.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoImprove HP Chromebook 14 pressure ranges
Jeremy [Sun, 22 Jul 2018 21:16:36 +0000 (23:16 +0200)]
Improve HP Chromebook 14 pressure ranges

6 years agoMerge branch 'master' of gitlab.freedesktop.org:libinput/libinput
Peter Hutterer [Thu, 19 Jul 2018 22:37:47 +0000 (08:37 +1000)]
Merge branch 'master' of gitlab.freedesktop.org:libinput/libinput

6 years agoAdd versionsort test
Greg V [Wed, 18 Jul 2018 18:37:25 +0000 (21:37 +0300)]
Add versionsort test

And make local versionsort testable even when the native one is present.

6 years agotools: fix touch frame checks in the YAML verifier script
Peter Hutterer [Thu, 19 Jul 2018 05:34:25 +0000 (15:34 +1000)]
tools: fix touch frame checks in the YAML verifier script

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotouchpad: don't NONE or HOVERING touches towards the touch
Peter Hutterer [Thu, 19 Jul 2018 04:52:44 +0000 (14:52 +1000)]
touchpad: don't NONE or HOVERING touches towards the touch

To trigger this, we'd need 1, 2, 3 fingers down, release fingers 1 and 2 but
keep 3 down. Then put finger 1 down again. Touches 1 and 3 are alive now,
touch 2 is in state NONE.

During the thumb detection we took the first touch not in BEGIN and assigned
it to "first" - this would now be the second touch in state NONE.

Real effect is relatively minimal since we only use the coordinates here.

Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/89

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotools: always set the log handler for debug-events and debug-gui
Peter Hutterer [Thu, 19 Jul 2018 04:10:32 +0000 (14:10 +1000)]
tools: always set the log handler for debug-events and debug-gui

This way errors are highlighted in red even without --verbose

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: add a section to the FAQs "is libinput required for Wayland"
Peter Hutterer [Thu, 19 Jul 2018 01:39:35 +0000 (11:39 +1000)]
doc: add a section to the FAQs "is libinput required for Wayland"

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: move the "General" section to the "Developer" section
Peter Hutterer [Thu, 19 Jul 2018 01:20:54 +0000 (11:20 +1000)]
doc: move the "General" section to the "Developer" section

The info here is mostly developer-oriented, let's group this together.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: fix references to a trackpoint range in the FAQs
Peter Hutterer [Thu, 19 Jul 2018 01:12:27 +0000 (11:12 +1000)]
doc: fix references to a trackpoint range in the FAQs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoREADME: add a user documentation section fairly high up
Peter Hutterer [Thu, 19 Jul 2018 01:11:58 +0000 (11:11 +1000)]
README: add a user documentation section fairly high up

For those with a tldr attention span

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agodoc: break up the "what is libinput" page with two sections
Peter Hutterer [Thu, 19 Jul 2018 01:06:50 +0000 (11:06 +1000)]
doc: break up the "what is libinput" page with two sections

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoAdd FreeBSD (cross-compliation based) CI
Greg V [Mon, 16 Jul 2018 15:33:39 +0000 (18:33 +0300)]
Add FreeBSD (cross-compliation based) CI

Fixes #82

6 years agoAutodetect and use libepoll-shim on FreeBSD
Greg V [Sun, 15 Jul 2018 21:41:05 +0000 (00:41 +0300)]
Autodetect and use libepoll-shim on FreeBSD

6 years agoevdev: fix the trackpoint multiplier info message
Peter Hutterer [Tue, 17 Jul 2018 00:51:35 +0000 (10:51 +1000)]
evdev: fix the trackpoint multiplier info message

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotools: setenv the quirks dir when running from the build directory
Peter Hutterer [Tue, 17 Jul 2018 00:02:49 +0000 (10:02 +1000)]
tools: setenv the quirks dir when running from the build directory

Fixes #84

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotools: change prototype of the builddir lookup function
Peter Hutterer [Tue, 17 Jul 2018 00:12:16 +0000 (10:12 +1000)]
tools: change prototype of the builddir lookup function

Only one place really needs the return argument, so we might as well just pass
the memory to be returned in.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoAdd input.h for FreeBSD
Greg V [Sun, 15 Jul 2018 21:05:33 +0000 (00:05 +0300)]
Add input.h for FreeBSD

6 years agotest: ptrace compatibility with *BSD
Greg V [Tue, 10 Jul 2018 11:01:54 +0000 (14:01 +0300)]
test: ptrace compatibility with *BSD

6 years agotest: use simple portable sendfile
Greg V [Tue, 10 Jul 2018 10:57:12 +0000 (13:57 +0300)]
test: use simple portable sendfile

There's no need for high performance in these little tests, so instead of
supporting various platform-specific sendfile() implementations, just use a local read-write function.

6 years agotest: support disabling tty on FreeBSD
Greg V [Tue, 10 Jul 2018 10:47:54 +0000 (13:47 +0300)]
test: support disabling tty on FreeBSD

Instead of K_OFF, use K_RAW plus termios raw mode.
(Same approach as in the Weston patches)

6 years agoUse getprogname() when program_invocation_short_name is not defined
Greg V [Tue, 10 Jul 2018 11:00:11 +0000 (14:00 +0300)]
Use getprogname() when program_invocation_short_name is not defined

6 years agoFix include portablity (xlocale, stdlib)
Greg V [Tue, 10 Jul 2018 10:56:18 +0000 (13:56 +0300)]
Fix include portablity (xlocale, stdlib)

6 years agoImport versionsort implementation from musl for systems without versionsort
Greg V [Tue, 10 Jul 2018 10:49:26 +0000 (13:49 +0300)]
Import versionsort implementation from musl for systems without versionsort

versionsort is a GNU extension, not available on *BSD systems.

6 years agofallback: remove some if 0 code
Peter Hutterer [Fri, 13 Jul 2018 05:17:01 +0000 (15:17 +1000)]
fallback: remove some if 0 code

Looks like a development leftover.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agoevdev: whitespace fix
Peter Hutterer [Fri, 13 Jul 2018 05:26:24 +0000 (15:26 +1000)]
evdev: whitespace fix

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotest: remove unsupported events from the invalid-range touchscreen test device
Peter Hutterer [Fri, 13 Jul 2018 05:03:39 +0000 (15:03 +1000)]
test: remove unsupported events from the invalid-range touchscreen test device

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
6 years agotest: remove unused values.h include
Greg V [Sun, 15 Jul 2018 20:50:33 +0000 (23:50 +0300)]
test: remove unused values.h include