summaryrefslogtreecommitdiff
path: root/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* quirks: add AttrInputPropEnable and DisablePeter Hutterer2020-10-231-0/+3
| | | | | | | The latter requires libevdev 1.10 but since that'll take a while to filter into our various CI systems, let's make it conditional. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: add AttrEventCodeEnable as counterpoint to the disable onePeter Hutterer2020-10-231-0/+1
| | | | | | | | | | | Currently unused, but let's get this in because we may need this very soon for broken tablets. Enabling EV_ABS axes requires an absinfo struct - we default to a simple 0-1 axis range for those as the most generic option. Anything more custom will need more custom treatment when we need it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: add a few compiler warnings and make them compiler-conditionalPeter Hutterer2020-09-091-2/+13
| | | | | | | These seem like a decent-enough set to have, only -Wlogical-op actually produced a new warning. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: drop the separate cpp flagsPeter Hutterer2020-09-091-3/+7
| | | | | | All we care about for C++ is that we build. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: bump minimum version to 0.47Peter Hutterer2020-09-091-1/+1
| | | | | | It's been out for 2 years. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: update libwacom dependency to 0.27 or newerPeter Hutterer2020-09-091-9/+1
| | | | | | Released in 2017, that's enough waiting Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Drop the trailing slash from the HTTP_DOC_LINKPeter Hutterer2020-09-091-2/+2
| | | | | | | It makes the printf statements nicer and we ne don't use it on its own anywhere anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: we no longer install a hwdb file, so drop the directory definePeter Hutterer2020-09-091-1/+0
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: drop a meson < 0.43 conditionPeter Hutterer2020-09-091-7/+0
| | | | | | We require meson 0.45, so this can no longer be triggered. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: bump to 1.16.900Peter Hutterer2020-09-091-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.16.11.16.1Peter Hutterer2020-08-131-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add two test devices for the false joystick labellingPeter Hutterer2020-08-131-0/+2
| | | | | | | | | | Two devices that were affected by the regression fixed with #517 Test devices taken from: https://gitlab.freedesktop.org/libinput/libinput/-/issues/514 https://gitlab.freedesktop.org/libinput/libinput/-/issues/515 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.16.01.16.0Peter Hutterer2020-08-031-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.9021.15.902Peter Hutterer2020-07-271-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.9011.15.901Peter Hutterer2020-07-151-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: don't install the quirks in a further 'quirks' subdirectoryPeter Hutterer2020-07-011-2/+3
| | | | | | | | | | install_subdir() by default also copies the 'quirks' directory, resulting in the quirks files being in <datadir>/libinput/quirks/*.quirks as opposed to the previous <datadir>/libinput/*.quirks. Fixes 727dc44b045974699be53d07464867d3183c6eef Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: use install_subdir() to install the quirks filesPeter Hutterer2020-06-171-41/+3
| | | | | | | This removes the need to check whether the files were added in meson.build but requires litest to traverse the source dir now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* evdev: filter unreliable tablet mode switch eventsPeter Hutterer2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | 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>
* Allow the flat acceleration profile for touchpadsEvan Goode2020-05-271-0/+1
| | | | Signed-off-by: Evan Goode <mail@evangoo.de>
* tools: add a measure touchpad-size toolPeter Hutterer2020-03-301-0/+2
| | | | | | | Replacement for the touchpad-edge-detector tool with a slightly more expressive design, hopefully cutting down on some of the bug reports. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* add trust mouse quirk #455Martin Cihlář2020-03-221-0/+1
| | | | Signed-off-by: Martin Cihlář <martin.cibule@seznam.cz>
* meson.build: bump to 1.15.900Peter Hutterer2020-03-221-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* man: install the analyze per-slot-delta man pagePeter Hutterer2020-03-201-0/+1
| | | | | | And add libinput analyze to the main libinput man page Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: switch tool option parsing test to use pytestPeter Hutterer2020-03-171-3/+6
| | | | | | | | pytest is more powerful than unittest, so let's switch to that instead. And in the process fix a few tests that for some reason succeeded even though they shouldn't have (e.g. the autorestart test). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a libinput analyze command with the per-slot-delta subcommandPeter Hutterer2020-03-161-0/+15
| | | | | | | I've been using this script ever since libinput record was available, might as well ship it with libinput so I don't have to remember where it lives. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.31.15.3Peter Hutterer2020-03-061-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.21.15.2Peter Hutterer2020-02-201-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: add a test case for checking EVDEV_ABS overridesPeter Hutterer2020-02-121-0/+1
| | | | | | | | | | | Problem: it's still not a 100% check because the way real udev handles the EVDEV_ABS overrides ignores any that are set through udev properties only. So we manually have to trigger the keyboard builtin for our test device which can give us false positives (e.g. it wouldn't have detected #424). But still, it'll alert us if the actual overridden values are different to what we expect. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.11.15.1Peter Hutterer2020-02-031-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tablet: fix the handling of axis updates after a forced proximity outPeter Hutterer2020-02-021-0/+1
| | | | | | | | | | | | | | | | | | | Where a pen was forced out of proximity and an eraser came into proximity without axis updates on the prox-in, subsequent axis updates would trigger the pen back into proximity. This resulted in two tools in proximity at once though the new pen never went out of proximity This would trigger crashes in various compositors/applications, see https://github.com/xournalpp/xournalpp/issues/1141#issuecomment-578362497 The cause was a wrong condition introduced in ffd8c71e4e. We only need to force the pen bit on if the current tool state is currently zero and no tool update was sent with the axis event. In our case, the tool state is nonzero already (eraser) and we can skip this bit. Fixes #418 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* touchpad: correct a wrong slot count by the kernelPeter Hutterer2020-01-291-0/+1
| | | | | | | | | | | | | | alps.c hardcodes 5 slots in the kernel but some devices only provide 2 slots plus BTN_TOOL_TRIPLETAP, etc. Fix this by counting active slots and when the fake finger count exceeds the active slots but is still less than the number of slots, adjust the slots themselves downwards. And because the new test device messes with our slot count assumptions for the various tests hardcode that one device to return 2 slots. Fixes #408 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.15.01.15.0Peter Hutterer2020-01-031-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: re-add missing trailing slash to the HTTP linkPeter Hutterer2019-12-231-2/+2
| | | | | | Got lost in 61f81ec93e7ddfae79ce3d1e8069bfce97c6d6aa Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* quirks: ignore mode switch button on Madcatz R.A.T.3 mouseAnatolii Lishchynskyi2019-12-111-0/+1
| | | | | | | | | Avoid stuck buttons, so window managers won't behave buggy, for example: * You click on one window, but click is emulated in another one * You hover cursor over button/link but see no feedback Based on quirk for Cyborg mouse. Signed-off-by: Anatolii Lishchynskyi <iamnotacake@protonmail.com>
* libinput 1.14.9011.14.901Peter Hutterer2019-12-051-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: write our test case results out as junit xml filesPeter Hutterer2019-11-281-2/+4
| | | | | | | | | | | | | | | | | libcheck has the ability to write out XML files for test results, but converting those into junit isn't ideal, for a number of reasons: - junit xml is different to libcheck's xml, so not all data is available or useful. Especially with our litest wrappers around it. - litest forking off tests means we have to wrap around everything anyway to avoid multiple forks writing to the same test file. This is the minimal implementation since it's only user is likely the CI which we control fairly tightly. So there are a few corners we can skip: - no filename validation is performed by litest - we write out a lot of junit xml files (one per litest fork). Rather than collating those we just rely on the CI to find the files. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: print the libinput version in debug-eventsPeter Hutterer2019-11-271-1/+4
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Adjust for 64bit time_t for 32bit architecturesPeter Hutterer2019-11-261-0/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* tools: add a tablet debugging toolPeter Hutterer2019-11-191-0/+14
| | | | | | | | | | Nothing sophisticated but easier to debug certain tablet oddities. It shows a bar for each axis on the tablet (and the evdev axis) and prints that relative to the axis range. This makes it easy to check if we do hit the full range (especially for distance/pressure/tilt) and whether that matches with what the device gives us. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: drop the explicit -g flagPeter Hutterer2019-11-061-1/+1
| | | | | | Let's rely on meson to set this for us. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* test: remove the hardcoded four-job valgrind test runPeter Hutterer2019-11-051-1/+0
| | | | | | Make this dependent on the number of processes too. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson: move HTTP doc url generation to herePeter Hutterer2019-10-171-0/+9
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: fix building as a subprojectTadeo Kondrak2019-10-071-9/+9
|
* meson.build: bump to 1.14.900Peter Hutterer2019-09-121-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* udev: parse the EVDEV_ABS properties for a potential fuzz settingPeter Hutterer2019-09-111-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | Where a fuzz is defined in the 60-evdev.hwdb, we rely on a udev builtin to set the kernel device to that fuzz value. Unfortunately that happens after our program is called with this order of events: 1. 60-evdev.rules calls IMPORT(builtin) for the hwdb which sets the EVDEV_ABS_* properties. It also sets RUN{builtin}=keyboard but that's not invoked yet. 2. 90-libinput-fuzz-override.rules calls IMPORT{program} for our fuzz override bits. That sets the kernel fuzz value to 0 and sets the LIBINPUT_FUZZ_* propertie 3. The keyboard builtin is run once all the rules have been processed. Our problem is that where the fuzz is set in a hwdb entry, the kernel fuzz is still unset when we get to look at it, so we always end up with a fuzz of zero for us and a nonzero kernel fuzz. Work around this by checking the EVDEV_ABS property, extracting the fuzz from there and re-printing that property without the fuzz. This way we ensure the kernel remains at zero fuzz and we use the one from the hwdb instead. Fixes #346 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Split utility functions into separate source filesPeter Hutterer2019-09-111-4/+38
| | | | | | | | | | | libinput-util.h is getting a bit of a catchall bucket and it includes things like libinput-private.h which in turn includes libwacom. This makes libinput-util.h less useful for bits that only need e.g. the string processing utilities. So let's split them all up in to separate files, to be used as-needed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* libinput 1.14.11.14.1Peter Hutterer2019-08-261-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* completion: add libinput(1) zsh completionsRonan Pigott2019-08-131-0/+4
|
* libinput 1.14.01.14.0Peter Hutterer2019-08-081-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* meson.build: drop explicit install:true from configure_filePeter Hutterer2019-08-021-22/+2
| | | | | | | | | | | | | meson implicitly sets install to whether install_dir is nonzero. Which means it's superfluous anyway and removing it drops the meson warning: WARNING: Project specifies a minimum meson_version '>= 0.41.0' but uses features which were added in newer versions: * 0.50.0: {'install arg in configure_file'} Fixes #334 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>