platform/upstream/libinput.git
4 months agopackaging: Bump up to 1.27.1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan accepted/tizen/unified/20250205.095548 accepted/tizen/unified/20250205.113525 accepted/tizen/unified/x/20250212.043750 accepted/tizen/unified/x/asan/20250211.003313
Jihoon Kim [Tue, 4 Feb 2025 10:06:42 +0000 (19:06 +0900)]
packaging: Bump up to 1.27.1

Change-Id: If9a74a164252a73662076cd3e68669b6c0f208dd
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoFix uninitialized pointer read
Jihoon Kim [Tue, 14 Jan 2025 00:25:55 +0000 (09:25 +0900)]
Fix uninitialized pointer read

scanf uses uninitialized value namelist when calling scandir.

Change-Id: Id5b651618477a76cefd6fca8c45c90124e825360
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoUse secure_getenv when available to fix untrusted source issue
duna.oh [Mon, 30 Sep 2024 09:00:19 +0000 (18:00 +0900)]
Use secure_getenv when available to fix untrusted source issue

Change-Id: I8c0fb08450eee9a0895fbf2437c2dd525075ef2f

4 months agoudev-seat: Replace strncmp with streq for safety
duna.oh [Fri, 30 Aug 2024 09:41:01 +0000 (18:41 +0900)]
udev-seat: Replace strncmp with streq for safety

Change-Id: I80c8e93473571e99e34529ead31bd557a8d20495

4 months agoFix std=c++14 for gtest 1.14.0 version upgrade
JinWang An [Wed, 31 Jan 2024 07:30:07 +0000 (16:30 +0900)]
Fix std=c++14 for gtest 1.14.0 version upgrade

Change-Id: I129e8645cb5d1bda47146eed399b7ba7419561fb
Signed-off-by: JinWang An <jinwang.an@samsung.com>
4 months agoFix issues detected by static analysis tool
Jihoon Kim [Wed, 17 Jan 2024 04:28:50 +0000 (13:28 +0900)]
Fix issues detected by static analysis tool

Change-Id: I91bedb9b89b4c6238f5c8b146ad7aa06e372d40d
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoFix coding style
Jihoon Kim [Tue, 23 May 2023 04:39:40 +0000 (13:39 +0900)]
Fix coding style

Change-Id: I5bfd5e9070a5d4bff5efd662ef8480856008fad0
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoupdate upstream branch
Jihoon Kim [Thu, 4 Jan 2024 02:02:25 +0000 (11:02 +0900)]
update upstream branch

Change-Id: Icf35927803d59aff22084aef446e4c16cb8d1eda
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agopackaging: Bump up to 1.24.0
Jihoon Kim [Thu, 4 Jan 2024 00:42:09 +0000 (09:42 +0900)]
packaging: Bump up to 1.24.0

Change-Id: I018bde400e3cbc7b76aa2e91334bbb5e9f00e45c
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoFix issue detected by static analysis tool
Inhong Han [Fri, 11 Aug 2023 06:34:39 +0000 (15:34 +0900)]
Fix issue detected by static analysis tool

Change-Id: I8278954b483c0f7b848c3aa3468d14790605c147

4 months agolibinput.c: add logs for debugging in TIZEN
duna.oh [Thu, 20 Jul 2023 07:03:37 +0000 (16:03 +0900)]
libinput.c: add logs for debugging in TIZEN

Change-Id: I0f5ad0fccf0c952af03e5ab4c829001f31312235

4 months agoFix issue detected by static analysis tool
Jihoon Kim [Mon, 17 Jul 2023 09:56:53 +0000 (18:56 +0900)]
Fix issue detected by static analysis tool

Change-Id: If1b4102aabdb428771b2afc958af259cda8fb3b7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agoFix issue detected by static analysis tool
Jihoon Kim [Mon, 17 Jul 2023 04:56:38 +0000 (13:56 +0900)]
Fix issue detected by static analysis tool

Change-Id: I4dbabe8feab7a260260998f3f98fb9f532dc2fbd
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 months agopackaging: Bump up to 1.22.0
duna.oh [Fri, 27 Jan 2023 05:37:22 +0000 (14:37 +0900)]
packaging: Bump up to 1.22.0

4 months agohaltest: fix haltest ro run properly
duna.oh [Tue, 14 Feb 2023 08:37:36 +0000 (17:37 +0900)]
haltest: fix haltest ro run properly

- keyboard devices can have either ID_INPUT_KEY OR ID_INPUT_KEYBOARD
- keyboard_events
  : retrieve which keycode is available for the device and
  generate key event using available keycode
- touch_events
  : retrieve the ABS_MT_POSITION's resolution/max data from the device and
  validate touch events using these data

4 months agoevdev: resolve memory leak
duna.oh [Fri, 27 Jan 2023 07:26:43 +0000 (16:26 +0900)]
evdev: resolve memory leak

4 months agoevdev: A joystick could be ignored before opening input device
duna.oh [Tue, 12 Jul 2022 06:17:52 +0000 (15:17 +0900)]
evdev: A joystick could be ignored before opening input device

add checking if the builtin property 'ID_INPUT_JOYSTICK' is set.
Because 'LIBINPUT_IGNORE_DEVICE' is usually set by udev rule,
it may not be determined until the udev rule is parsed.

A joystick is not supported in libinput for now.

Change-Id: I19cc67538dd1ccc6f1c6f2a2dccbb96d344d40ac

4 months agotablet: Fix divide by zero error. 'count' could be zero
Duna Oh [Tue, 8 Feb 2022 06:39:18 +0000 (15:39 +0900)]
tablet: Fix divide by zero error. 'count' could be zero

4 months agopackagin: Bump up to 1.17.0
Duna Oh [Mon, 7 Feb 2022 16:31:41 +0000 (01:31 +0900)]
packagin: Bump up to 1.17.0

4 months agoChecking return value
dyamy-lee [Mon, 26 Apr 2021 06:13:30 +0000 (15:13 +0900)]
Checking return value

When using return value from other function, it is usually checked for it.

Change-Id: I071942d9885500ce37adf08f89788d59d031d458

4 months agoAdd Initialization of variable
dyamy-lee [Mon, 26 Apr 2021 05:05:42 +0000 (14:05 +0900)]
Add Initialization of variable

Add initialization for uninitialized pointer field.
Add initialization for uninitialized value of struct field.

Change-Id: I2faf84800bf54abdff4f18a1d920b1a162a07ad0

4 months agoResolve a resource leak
dyamy-lee [Mon, 26 Apr 2021 05:03:27 +0000 (14:03 +0900)]
Resolve a resource leak

fd going out of scope leaks the handle. So, it add close(fd) when it unfortunately return.

Change-Id: I00caca9166b30575503efbb41522bc2d5be8c2c4

4 months agoImplements TouchEventCheckTest for libinput haltests
dyamy-lee [Wed, 21 Apr 2021 08:01:49 +0000 (17:01 +0900)]
Implements TouchEventCheckTest for libinput haltests

It's same way of checking MouseEventCheckTest.
For test, get lists of libinput devices and check validation of created touch event.
Only different thing with others is check it is mult touch support.
It supports multi touch, it generates libiput touch event and saves sequencely. For example, touch down, move, up.
It checkes devices capability which is touch, and checkes matching of events. If one of them checked successfully same events as created events, other touch devices can be skipped.

Change-Id: I0a60e675c14714c67debd0cfaac3c9ed80a1dc03

4 months agoImplements KeyboardEventCheckTest for libinput haltests
dyamy-lee [Wed, 21 Apr 2021 07:48:43 +0000 (16:48 +0900)]
Implements KeyboardEventCheckTest for libinput haltests

It's same way of checking MouseEventCheckTest.
For test, get lists of libinput devices and check validation of created keyboard event.
It generates libinput keyboard event and saves sequencely. For example, key down, up, key down up.
It checkes devices capability which is keyboard, and checkes matching of events. If one of them checked successfully same events as created events, other keyboard devices can be skipped.

Change-Id: I8d20d9c324331c759bcce8a14096819b681e36ff

4 months agoImplements MouseEventCheckTest for libinput haltests
dyamy-lee [Wed, 21 Apr 2021 07:36:59 +0000 (16:36 +0900)]
Implements MouseEventCheckTest for libinput haltests

For test, get lists of libinput devices and check validation of created mouse event.
It generates libinput mouse event and saves sequencely. For example, mouse left button down, move, up.
It checkes devices capability which is mouse, and checkes matching of events. If one of them checked successfully same events as created events, other mouse devices can be skipped.

Change-Id: Ifa06d24d0796eb3b207dc30f13b924af1804a3e1

4 months agoAdd testing get libinput devices list for libinput haltests
dyamy-lee [Wed, 21 Apr 2021 07:08:45 +0000 (16:08 +0900)]
Add testing get libinput devices list for libinput haltests

For saving libinput devices list, create struct about device info(Capability, path) and function for handling libinput add event.
It only saves real devices. It means, it skips uinput device and checks property of udev device.

Change-Id: Ibf42abe728c550e40da13897c02b8abdc7235baa

4 months agoAdd SetUp/TearDown in libinput haltests
dyamy-lee [Wed, 21 Apr 2021 06:44:40 +0000 (15:44 +0900)]
Add SetUp/TearDown in libinput haltests

Every test creates libinput and udev, and removes them. So, executing common logic as using SetUp/TearDown.

Change-Id: I445db460c282a6f929ac8db5a70c0aa67302f32a

4 months agoAdd libinput haltests frame
dyamy-lee [Wed, 21 Apr 2021 06:35:11 +0000 (15:35 +0900)]
Add libinput haltests frame

It generate the libinput haltests rpm package successfullty for testing input devices in hal by adding build configuration and packaging configuration.
It test udev create, first. And it will be implement each device types test later.

Change-Id: I86312d798503b1816c2826df35590031d1d2305a

4 months agopackaging: Bump up to 1.16.1
jeon [Wed, 6 Jan 2021 06:50:29 +0000 (15:50 +0900)]
packaging: Bump up to 1.16.1

Change-Id: Iae16b868b7d372db197e3e4197d7d6f22f37b345

4 months agoFix indentation
INSUN PYO [Mon, 16 Nov 2020 04:57:44 +0000 (13:57 +0900)]
Fix indentation

Change-Id: I957b966407ec281bb7b91cd7ed2dc49e8a3c3802

4 months agoudev-seat: skip addition of unconfigured device by event source
Sung-Jin Park [Tue, 27 Oct 2020 12:07:50 +0000 (21:07 +0900)]
udev-seat: skip addition of unconfigured device by event source

Change-Id: Id7f36e62ca6f566d8b2023daa39480c6d6a9a568
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoflush touch aux events without normal touch events
jeon [Wed, 17 Jun 2020 12:57:18 +0000 (21:57 +0900)]
flush touch aux events without normal touch events

Change-Id: I1a249c253a0f760b523c56cd73d3daa76a2eac0b

4 months agolibinput: remove build warnings
jeon [Thu, 12 Mar 2020 11:55:44 +0000 (20:55 +0900)]
libinput: remove build warnings

  - if ENABLE_QUIRKS is not enabled,
    these variables are not used.

Change-Id: Ie909526d2dc18b47d8b527a141ea59092bb8ade2

4 months agoudev-seat: fix a memory leak
jeon [Thu, 12 Mar 2020 10:44:25 +0000 (19:44 +0900)]
udev-seat: fix a memory leak

Change-Id: Ic6aff8a80c272da3510d611c0fc31f4ace73fbaf

4 months agoquirks: add an option to enable/disable quirks
jeon [Thu, 12 Mar 2020 10:18:00 +0000 (19:18 +0900)]
quirks: add an option to enable/disable quirks

Change-Id: I75aef0d1b1f98b4e2491c9197d1cf8ad54c59341

4 months agopackaging: Bump up to 1.15.0
jeon [Tue, 18 Feb 2020 11:35:25 +0000 (20:35 +0900)]
packaging: Bump up to 1.15.0

4 months agoevdev: fix a memory leak
jeon [Thu, 9 Jan 2020 08:38:16 +0000 (17:38 +0900)]
evdev: fix a memory leak

Change-Id: Id19e03cb517286e2b7e2c127a162195f3c65726b

4 months agoevdev: filtering a BTN_TOOL_FINGER like a BTN_TOUCH
jeon [Fri, 3 May 2019 11:20:25 +0000 (20:20 +0900)]
evdev: filtering a BTN_TOOL_FINGER like a BTN_TOUCH

Change-Id: Iebf445657df1c3028d816f3d5ca5a925a2c571f5

4 months agoevdev: free aux_data struct in fallback destroy function
JengHyun Kang [Fri, 12 Oct 2018 07:00:46 +0000 (16:00 +0900)]
evdev: free aux_data struct in fallback destroy function

Change-Id: Ief8b7ed7bf1aea714e635ca2661450b519012015

4 months agoudev-seat: add apis to set udev monitor's event source and buffer size
Sung-Jin Park [Mon, 20 Aug 2018 07:21:43 +0000 (16:21 +0900)]
udev-seat: add apis to set udev monitor's event source and buffer size

Change-Id: Ib41e5421c174e2d5cc26bc19f077a045ad7a2e19
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoudev-seat: remove unused environment variable
Sung-Jin Park [Mon, 20 Aug 2018 05:18:06 +0000 (14:18 +0900)]
udev-seat: remove unused environment variable

Change-Id: I97fa9f2fe29875dcefa3f642f6ecad695d11c555
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoevdev: support ABS_MT_PRESSURE events
JengHyun Kang [Fri, 6 Jul 2018 06:19:48 +0000 (15:19 +0900)]
evdev: support ABS_MT_PRESSURE events

Change-Id: I9f7a4d4f6b463a396a3848059990b1a1f2174d23

4 months agolibinput-udev: fix not to install udev rules and utils
Sung-Jin Park [Wed, 21 Mar 2018 08:49:30 +0000 (17:49 +0900)]
libinput-udev: fix not to install udev rules and utils

Change-Id: Ied11493e151a17407c79cd7d88fb84c2132f3ec9
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoudev-seat: add LIBINPUT_UDEV_SKIP_INITIAL_ENUMERATION env to enable skip udev enumeration
Sung-Jin Park [Fri, 22 Dec 2017 02:58:49 +0000 (11:58 +0900)]
udev-seat: add LIBINPUT_UDEV_SKIP_INITIAL_ENUMERATION env to enable skip udev enumeration

Change-Id: Id88d21e8d4c40d7d5a85fb68c4bbaef4dc56e7d0
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agolibinput-util: fix logical error regarding comparison of a long variable with its...
Sung-Jin Park [Mon, 13 Nov 2017 05:10:53 +0000 (14:10 +0900)]
libinput-util: fix logical error regarding comparison of a long variable with its maximum/minimum value

Change-Id: I9d6451a645476efb85477e6e4a9807ea136c05b4
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoevdev: fix integer division problem by casting one of two integers as double
Sung-Jin Park [Mon, 13 Nov 2017 06:39:40 +0000 (15:39 +0900)]
evdev: fix integer division problem by casting one of two integers as double

Change-Id: Ice7caf41c4834b625825335c37e14266c31f5cc4
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agofix build warnings
JengHyun Kang [Wed, 25 Oct 2017 08:02:39 +0000 (17:02 +0900)]
fix build warnings

4 months agopackaging: Bump up to 1.8.0
JengHyun Kang [Tue, 24 Oct 2017 07:39:33 +0000 (16:39 +0900)]
packaging: Bump up to 1.8.0

Change-Id: I4530bc57d1cbc9d9441f95e2e68c944ad7210794

4 months agoevdev: check a null list
JengHyun Kang [Tue, 5 Sep 2017 12:54:07 +0000 (21:54 +0900)]
evdev: check a null list

Change-Id: Ic281e4ff5f266bff9638f204964cc2503c7d90c8

4 months agolibinput-device-group: apply ASLR
Sung-Jin Park [Fri, 11 Aug 2017 07:34:55 +0000 (16:34 +0900)]
libinput-device-group: apply ASLR

Change-Id: I517dde04ad048cace459d23f3df63d8deb26c5c6
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoevdev: casting unsigned int to int to compare value
JengHyun Kang [Wed, 7 Jun 2017 11:20:56 +0000 (20:20 +0900)]
evdev: casting unsigned int to int to compare value

Change-Id: I3c1a3da814b89af44e3d6e93bbad2cc7c2535b70

4 months agoevdev: free aux_data list when device is destroy
JengHyun Kang [Wed, 7 Jun 2017 11:10:07 +0000 (20:10 +0900)]
evdev: free aux_data list when device is destroy

Change-Id: I76f8df6b8fed1d01540c1430247ffc00dc28dfc5

4 months agoevdev: remove unreachable code and add exception handling code for aux_data_list
Sung-Jin Park [Tue, 30 May 2017 06:53:19 +0000 (15:53 +0900)]
evdev: remove unreachable code and add exception handling code for aux_data_list

Change-Id: I7e2a936cece97d7a8ecce90fa261976514e35371
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agosupport a AUX code events generated from EV_ABS
JengHyun Kang [Tue, 25 Apr 2017 09:51:02 +0000 (18:51 +0900)]
support a AUX code events generated from EV_ABS

Change-Id: I144282f5ddc330eb77b73b3da5a36cedb6af069f

4 months agoImport opensource codes for security issue. - evdev: user safe_atod to convert the...
JengHyun Kang [Mon, 17 Apr 2017 09:54:11 +0000 (18:54 +0900)]
Import opensource codes for security issue. - evdev: user safe_atod to convert the matrix values

Change-Id: I140c95ca030822bf6345b09d16d445af0aebd9e5

4 months agopackaging: update packaging file to install license file via %license macro
Sung-Jin Park [Wed, 22 Mar 2017 05:27:02 +0000 (14:27 +0900)]
packaging: update packaging file to install license file via %license macro

Change-Id: I65ccb6a6357abf1a9ea060ca8c1eb3abf077d955
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
4 months agoIgnore joystick devices if LIBINPUT_IGNORE_JOYSTICK env is 1
JengHyun Kang [Fri, 9 Dec 2016 02:51:58 +0000 (11:51 +0900)]
Ignore joystick devices if LIBINPUT_IGNORE_JOYSTICK env is 1

Change-Id: I56d9cc833acad212e3d8071a79adf27bc29c19ca

4 months agoevdev: Do not open the already opened device
JengHyun Kang [Mon, 22 Aug 2016 07:54:29 +0000 (16:54 +0900)]
evdev: Do not open the already opened device

Change-Id: I96ba5287f28dfa301628232a5a6a02f1baf1c7a2

4 months agoSet receive buffer size from UDEV_MONITOR_BUFFER_SIZE env
Lisa kim [Fri, 29 Jul 2016 06:55:54 +0000 (15:55 +0900)]
Set receive buffer size from UDEV_MONITOR_BUFFER_SIZE env

Change-Id: I6adaa345ad4df6f1c3c26811b569cb0998bf0bc8
Signed-off-by: Lisa kim <hj0530.kim@samsung.com>
4 months agoCall a input_set_default_property() in evdev_device_create if this function is exist
JengHyun Kang [Tue, 12 Jul 2016 08:52:27 +0000 (17:52 +0900)]
Call a input_set_default_property() in evdev_device_create if this function is exist

Change-Id: Ib47c6115248204d9ff63ced802c557b1bf5ad5f5

4 months agosvace: Modify a strerror function to strerror_r to gurantee threads safety.
JengHyun Kang [Tue, 12 Jul 2016 02:14:03 +0000 (11:14 +0900)]
svace: Modify a strerror function to strerror_r to gurantee threads safety.

Change-Id: Iacd31adb29bb284f93aa04597d5c6ca364e0616b

4 months agoAdd a device only when the device is not created by libinput_path
Duna Oh [Mon, 18 Apr 2016 13:56:59 +0000 (22:56 +0900)]
Add a device only when the device is not created by libinput_path

Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: Ic9d444cbf0d8ab95293e3770a91e31e83f405d60

4 months agoAdd a new API to return wheel click angle value
JengHyun Kang [Thu, 24 Mar 2016 11:50:02 +0000 (20:50 +0900)]
Add a new API to return wheel click angle value

Change-Id: Ic45f60fd95ab7835fa92064c9badb46fe9164695

4 months agoApply directory macros
Sung-Jin Park [Fri, 11 Mar 2016 02:50:46 +0000 (11:50 +0900)]
Apply directory macros

Change-Id: I9b419f585ef8b1832fcc114720fc572869771ce3

4 months agoModify a ttrace macro name TRACE_BEGIN to TRACE_INPUT_BEGIN
JengHyun Kang [Fri, 26 Feb 2016 08:40:45 +0000 (17:40 +0900)]
Modify a ttrace macro name TRACE_BEGIN to TRACE_INPUT_BEGIN

Change-Id: I2559a8156056fcbd359008e0da59615ff7270c7d

4 months agoRemove unnecessary ttrace and add ttrace logs to another point
JengHyun Kang [Wed, 24 Feb 2016 05:03:27 +0000 (14:03 +0900)]
Remove unnecessary ttrace and add ttrace logs to another point

Change-Id: I21c3d60d357c46df968437e22f45dcf12455ff6c

4 months agoAdd ttrace
JengHyun Kang [Thu, 11 Feb 2016 06:44:36 +0000 (15:44 +0900)]
Add ttrace

Change-Id: I82a316d226c967a396f6ce5671feeafbfb37bd0f

4 months agoAdd a patch for support extra touch events.
JengHyun Kang [Thu, 7 Jan 2016 08:23:24 +0000 (17:23 +0900)]
Add a patch for support extra touch events.

  - libinput commit name: add orientation and size of touch point and pressure to the API

Change-Id: Icfd09c132b51bf15837f11bdd662181e666960b5

4 months agoAdd manifest for security domain policy
Mun, Gwan-gyeong [Tue, 4 Aug 2015 08:03:30 +0000 (17:03 +0900)]
Add manifest for security domain policy

Change-Id: I70e41f3e4ad12035ff513fc2a322bedbaf87dd49

4 months agopackaging: correct installation path of udev rule files on 64bit arch
Gwanglim Lee [Mon, 11 May 2015 05:27:56 +0000 (14:27 +0900)]
packaging: correct installation path of udev rule files on 64bit arch

Change-Id: I26ae6192c393516e18d72b1fedc0aa1c412f164b

4 months agopackaging: Bump to 0.11.0
Philippe Coval [Mon, 23 Feb 2015 09:05:08 +0000 (10:05 +0100)]
packaging: Bump to 0.11.0

Change-Id: I68ab7b18613657814e6535261ac85fad4019122a
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
4 months agopackaging: Bump to 0.8.0
Manuel Bachmann [Sat, 14 Feb 2015 15:10:57 +0000 (16:10 +0100)]
packaging: Bump to 0.8.0

Change-Id: I661837a5368f60aeeb0760c1f419fd3c457faf31
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
4 months agopackaging: Bump to 0.6.0
Philippe Coval [Tue, 4 Nov 2014 15:31:28 +0000 (16:31 +0100)]
packaging: Bump to 0.6.0

Change-Id: Id66ecfc8dec24521687a572b699d0606b29ff4dc
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
4 months agopackaging: Bump to 0.5.0
Philippe Coval [Thu, 14 Aug 2014 12:46:53 +0000 (14:46 +0200)]
packaging: Bump to 0.5.0

Change-Id: Icc00f5164583a5657e7699a686c76e49698093f2
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
4 months agopackaging: use upstream tags
Philippe Coval [Thu, 14 Aug 2014 12:46:23 +0000 (14:46 +0200)]
packaging: use upstream tags

Change-Id: Ia5af4a9a3294e3359dd67f635be1c0e97a416387
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
4 months agopackaging: Initial packaging on 0.1.0 for Tizen
Philippe Coval [Fri, 28 Feb 2014 15:46:59 +0000 (16:46 +0100)]
packaging: Initial packaging on 0.1.0 for Tizen

Change-Id: I682fc2715f9f8a60046c5c9297b7d96173131aeb
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
4 months agolibinput 1.27.1
Peter Hutterer [Mon, 6 Jan 2025 04:05:01 +0000 (14:05 +1000)]
libinput 1.27.1

Change-Id: I18b106cb583f2c5ffc2cb759b0ae299ad454901f
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
5 months agoCI: bump to Fedora 41
Peter Hutterer [Mon, 23 Dec 2024 03:09:47 +0000 (13:09 +1000)]
CI: bump to Fedora 41

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1111>

5 months agoFix two scan-build warnings that appear on F41
Peter Hutterer [Mon, 23 Dec 2024 07:13:06 +0000 (17:13 +1000)]
Fix two scan-build warnings that appear on F41

../../../src/util-files.h:61:3: warning: The 1st argument to 'close' is <= -2 but should be >= -1 [unix.StdCLibraryFunctions]
   61 |                 close(*fd);

 ../../../test/test-quirks.c:66:8: warning: Null pointer passed to 2nd parameter expecting 'nonnull' [core.NonNullParamChecker]
   66 |                 rc = fputs(file_content, fp);

The latter is bogus because we have a litest_assert for this but
somehow this is ignored, so... shrug.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1111>

5 months agotools/libinput-replay: use list comprehension instead of append
Peter Hutterer [Fri, 20 Dec 2024 00:34:33 +0000 (10:34 +1000)]
tools/libinput-replay: use list comprehension instead of append

And remove the unnecessary del processes, we're in a block so processes
ceases to exist there anyway.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1102>

5 months agotools/libinput-replay: interrupt only the ongoing event sequence with ctrl+c
Peter Hutterer [Thu, 19 Dec 2024 01:48:49 +0000 (11:48 +1000)]
tools/libinput-replay: interrupt only the ongoing event sequence with ctrl+c

If libinput replay is currently replaying events, stop that sequence and
go back to the start if the user presses Ctrl+C. Only on the second
Ctrl+C do we fully exit.

This helps debugging long recordings where we don't want to keep
producing events after some initial event sequence.

Closes #1064

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1102>

5 months agoquirks: Add quirk for Google Chromebook Banshee
WeirdTreeThing [Fri, 20 Dec 2024 17:36:50 +0000 (12:36 -0500)]
quirks: Add quirk for Google Chromebook Banshee

Signed-off-by: Brady Norander <bradyn127@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1108>

5 months agogestures: change the debug log messages for state debugging
Peter Hutterer [Fri, 20 Dec 2024 01:16:36 +0000 (11:16 +1000)]
gestures: change the debug log messages for state debugging

Prefix the result of handle_event with "event" and the handle_state with
"state"

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1106>

5 months agogestures: use a macro for debugging transition states
Peter Hutterer [Fri, 20 Dec 2024 01:04:41 +0000 (11:04 +1000)]
gestures: use a macro for debugging transition states

This avoids bugs where we forget to update a state but also provides
some bounds checking now to ensure our array is large enough to store
those transitions.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1106>

5 months agotools/debug-gui: color the fingers with different colors
Peter Hutterer [Thu, 19 Dec 2024 03:51:42 +0000 (13:51 +1000)]
tools/debug-gui: color the fingers with different colors

Follow-up to commit 713892c162f0 ("Number the fingers by slot in debug-gui")
this changes the colors slightly for each finger, making it easier to
track visually.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1103>

5 months agoquirks: the Wacom Bamboo 2FG 6x8 is a semi-mt touchpad
Peter Hutterer [Thu, 19 Dec 2024 04:01:51 +0000 (14:01 +1000)]
quirks: the Wacom Bamboo 2FG 6x8 is a semi-mt touchpad

See #919

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1104>

5 months agotriage-policies: fix the hwdb.d directory
Peter Hutterer [Wed, 18 Dec 2024 22:18:54 +0000 (08:18 +1000)]
triage-policies: fix the hwdb.d directory

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1100>

5 months agotriage-policies: add an entry to punt to udev-hid-bpf
Peter Hutterer [Thu, 19 Dec 2024 04:23:29 +0000 (14:23 +1000)]
triage-policies: add an entry to punt to udev-hid-bpf

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1105>

5 months agogestures: fix transformation of scroll to pinch
Joshua Noeske [Wed, 18 Dec 2024 14:50:50 +0000 (15:50 +0100)]
gestures: fix transformation of scroll to pinch

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1099>

5 months agotools: only warn once about our lack of support for multiple fingers
Peter Hutterer [Mon, 16 Dec 2024 01:52:18 +0000 (11:52 +1000)]
tools: only warn once about our lack of support for multiple fingers

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1096>

5 months agotouchpad: init the thumb size threshold to INT_MAX
Peter Hutterer [Mon, 16 Dec 2024 01:59:47 +0000 (11:59 +1000)]
touchpad: init the thumb size threshold to INT_MAX

For consistency with the pressure threshold, both are guarded behind
a use_size/use_pressure boolean anyway.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1095>

5 months agotools/libinput-replay: print a separator line for EV_SYN events
Peter Hutterer [Tue, 17 Dec 2024 00:49:25 +0000 (10:49 +1000)]
tools/libinput-replay: print a separator line for EV_SYN events

If running with --verbose having that line makes it a lot easier to
look at the event sequence.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1094>

5 months agotriage-policies: default close after pointing the user to 60-evdev.hwdb
Peter Hutterer [Tue, 17 Dec 2024 05:35:27 +0000 (15:35 +1000)]
triage-policies: default close after pointing the user to 60-evdev.hwdb

In line with our new process of closing bugs let's close after this
bugbot message too. If the hwdb doesn't fix it then the reporter can
always re-open.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1097>

5 months agotriage-policies: add missing "actions" for the bugbot::evdev-hwdb
Peter Hutterer [Wed, 18 Dec 2024 01:11:18 +0000 (11:11 +1000)]
triage-policies: add missing "actions" for the bugbot::evdev-hwdb

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1098>

5 months agotriage-policies: update the bugbot::close wording and link to the wiki
Peter Hutterer [Mon, 16 Dec 2024 00:34:29 +0000 (10:34 +1000)]
triage-policies: update the bugbot::close wording and link to the wiki

Now that we have a wiki page let's link to it, it has all the details
on how and why we (plan to) do this.

Also change the wording to be make it easier to anthropomorphize bugbot
when it adds that comment, ideally leading to fewer grumpy users.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1093>

5 months agoAdd examples with other thresholds to the documentation
Salvo 'LtWorf' Tomaselli [Wed, 11 Dec 2024 20:29:28 +0000 (21:29 +0100)]
Add examples with other thresholds to the documentation

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1092>

6 months agotriage-policies: add missing actions line
Peter Hutterer [Wed, 11 Dec 2024 08:57:29 +0000 (18:57 +1000)]
triage-policies: add missing actions line

Fixes: 85ec33f802ad ("triage-policies: add a bugbot command for closing bugs")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1091>

6 months agotriage-policies: add a bugbot command for closing bugs
Peter Hutterer [Wed, 11 Dec 2024 04:41:25 +0000 (14:41 +1000)]
triage-policies: add a bugbot command for closing bugs

We have labels like needinfo or triage needed but all these labels
require intervention from a privileged user - normal users cannot
set labels on a project.

The only thing users can all do is open/close/re-open bugs. So let's try
to incorporate this into our event flow: if we need something from the
user we ask for it, close the bug and when the user supplies this
information they can re-open it. This means e.g. bugs waiting forever in
triage will not show up as actionable in the issue list.

Since users aren't used to that workflow let's add a bugbot blurb that
explains that we're not really closing the issue, just using that as the
only lever we have available.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1090>

6 months agotools/measure-touchpad-pressure: require max > min for a range
Peter Hutterer [Mon, 9 Dec 2024 22:08:50 +0000 (08:08 +1000)]
tools/measure-touchpad-pressure: require max > min for a range

Otherwise a resulting quirk will fail when parsed by libinput which
enforces this too.

Closes #1060

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1089>

6 months agogestures: don't handle SWIPE if we transitioned from SWIPE_START
Peter Hutterer [Thu, 5 Dec 2024 03:09:43 +0000 (13:09 +1000)]
gestures: don't handle SWIPE if we transitioned from SWIPE_START

If we get to SWIPE_START we send out the BEGIN event and transition to
state SWIPE. We must not process that state immediately to avoid sending
out a spurious UPDATE event when nothing has changed.

Same for the PINCH_START/PINCH and SCROLL_START/SCROLL states.

This also fixes a crasher where we end up with NaN in the custom
acceleration function because passing the same timestamp in twice causes
a division by zero (delta time is zero).

Closes #1053

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1088>