| Age | Commit message (Collapse) | Author | Files | Lines |
|
The press of the on-button scroll button is not posted while the button
is held, so release_pressed_keys() has nothing to release for it when a
device returns to its neutral state. The button scroll state and the
scroll button lock state stay as they were and the release never
arrives: it is lost while the device is suspended, or discarded because
the button is no longer down in hw_key_mask.
After the resume, pointer motion is discarded or sent as scroll events
until the scroll button is clicked again, and a scroll in progress is
never terminated. If the scroll button lock is enabled and the button
was down when the device was suspended, the next press of it trips an
assert in evdev_button_scroll_button(). Where debouncing is active and
the button was released while the device was suspended, the debounce
plugin swallows the first press after the resume and it is the one
after that.
The same state is left behind if the scroll button lock is engaged and
the lock, the scroll method or the scroll button is changed: no button
is down so the change applies immediately, but motion keeps scrolling,
or scrolls again once on-button scrolling is switched back on.
Reset button scrolling in both places: cancel the timer, terminate a
scroll in progress and return the state and an enabled lock to idle.
An engaged scroll button lock is thus released when the device is
suspended or the scroll configuration changes, and a device that is
removed while scrolling now gets its scroll stop too.
Assisted-by: AI
Signed-off-by: Owen Kent <owenpkent@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1547>
|
|
Middle button emulation holds back the press of the left or right
button for 50ms. If the device is suspended within that time the timer
still fires and the press is posted by a suspended device. Its release
never arrives: it is either lost while the device is suspended or
discarded because the button is no longer down in hw_key_mask. The
button stays logically down and further clicks of it send no events.
Return the state machine to idle when the device returns to its neutral
state. That cancels the timer and drops a press that is still held
back. Buttons that were already posted, the emulated middle button
included, are released by release_pressed_keys() as before.
Assisted-by: AI
Signed-off-by: Owen Kent <owenpkent@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1547>
|
|
fallback_return_to_neutral_state() clears hw_key_mask twice and never
clears last_hw_key_mask. A button that is down when the device is
suspended thus stays down in last_hw_key_mask while hw_key_mask and the
key count say it is up, and the next EV_KEY frame after resuming sees a
change that isn't there.
If the button was released while the device was disabled, the next
press of that button matches the stale bit and is dropped, and the
release that follows triggers a "releasing key with count 0" libinput
bug and an unpaired release event. If the button is still down when the
device is re-enabled, its kernel release is correctly ignored but the
next press of any other button sends a spurious release for the
original button, again with the libinput bug message.
Where button debouncing is active, the debounce plugin also missed the
release in the first case and swallows the first press after
re-enabling on its own, so there it is the second click that is lost.
This affects anything that suspends a fallback device, e.g. disabling
send events or a tablet mode switch suspending a trackpoint. Keys are
not affected since they are notified directly, not from the mask diff.
Fixes: db3b6fe5f7f8 ("fallback: change to handle the state at EV_SYN time")
Signed-off-by: Owen Kent <owenpkent@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1538>
|
|
This is a followup to !1533, to resolve the following super-small issue:
1. Suppose there's a touchpad where the hysteresis starts in the
inactive state. All the touchpad finger centers are zero-filled, so
(0, 0), the top-left corner of the pad.
2. While a finger is being moved, wobble detection kicks in and
switches hysteresis on.
3. The frame is filtered out by the hysteresis that just got turned on
(`tp_detect_wobbling()` runs, then `tp_motion_hysteresis()`). The
finger is far from (0, 0), so the reported point is dragged one
margin-length back towards the top-left corner.
4. The result is a one-off nudge of up to one margin (6 units)
diagonally towards the top-left, even if the finger was only moving
sideways.
This came out of me attempting to write the test for !1533 so I decided
to put it up (this is why the test just extends the one added in !1533).
It is not a particularly huge deal though, just what seemed to be a
minor defect.
Assisted-by: Claude:claude-opus-5-5
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1536>
|
|
Once we get really tiny step sizes (depending on the input speed but for
speed_in of 1 it's around 5.4e-20), our interpolation math for the final
segment of the curve no longer works correctly (we exceed SIZE_MAX)
Fix this by converting the math to double so we can handle those values
and get free NaN/inf handling too since those will always be falsy.
But since steps of that size are utterly pointless anyway, let's also
prevent the user from setting them, anything below 0.000001 will now
be rejected. This is an internal #define only, no reasonably user will
ever run into that.
Closes #1352
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1534>
|
|
On touchpads without fuzz, the hysteresis starts off and wobble
detection switches it on at runtime. Some touchpads with high-quality
sensors are jitter-free, and on those touchpads, small real
back-and-forth motion is enough to trigger wobble detection. From then
on, the touchpad feels notably worse since small motions are dropped.
Add the AttrTouchpadHysteresis quirk, which can be set to either 0
(disable permanently) or 1 (always enable it, even on touchpads without
a reported fuzz).
See https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1364
for more details.
Assisted-by: Claude:claude-opus-5-5
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1537>
|
|
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1535>
|
|
Plugins run just once at the beginning of the process, and if a plugin
requested that hysteresis be disabled, that was only applied at the very
beginning. If wobble was detected afterwards, hysteresis would be turned
back on.
Replace the bool with a three-state enum:
- inactive (off, but wobble detection may switch it on)
- active
- disabled (by a plugin; cannot be turned on by wobble)
(I had Opus 5.5's assistance in finding the issue and suggesting the
first version of the patch, but reworked it and the test significantly
based on my best understanding. Any errors in it are probably mine!)
Fixes: afd3be9a99d2 ("touchpad: allow disabling the touchpad hysteresis")
Assisted-by: Claude:claude-opus-5-5
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1533>
|
|
Rotation applies to relative motion, but the fallback dispatch offers it
on any device that isn't a trackpoint. Keyboards with a wheel or
consumer control keys, e.g. the extra event nodes of many gaming mice
and keyboards, are pointer devices too, so they offer a rotation that
has no effect other than flipping the wheel direction near 180 degrees.
Configuration tools then show a rotation setting for these devices.
Only offer rotation on devices with REL_X and REL_Y, the same condition
pointer acceleration is initialized for.
Devices with a wheel but without relative motion no longer invert the
wheel near 180 degrees, but this should be configured via natural
scrolling anyway.
Signed-off-by: Matthias Berndt <matthias_berndt@gmx.de>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1530>
|
|
A zero delta reaches the custom filter when a relative frame cancels
out, and on a Lenovo ScrollPoint for every frame without wheel motion.
The filter divides the curve's output speed by an input speed of 0, so
the filtered deltas are NaN.
Return a zero delta before the speed calculation. A zero delta then
also leaves the timestamps unchanged, so the next movement's speed is
measured over the whole interval since the last real movement. That
matches the filtered zero events in the comment above
custom_accel_function_calculate_speed(), and the touchpad, which never
passes a zero delta to the filter.
Closes: #1351
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1527>
|
|
The step and point range checks use < and > comparisons. Every
comparison with NaN is false, so a NaN step or point passed the checks
and was stored in the custom acceleration function.
Negate the in-range checks instead, as
libinput_device_config_accel_set_speed() already does for the speed.
Closes: #1353
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1526>
|
|
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1528>
|
|
evdev_device_suspend() notifies paired devices before running the
device's suspension callback. For keyboards, that callback emits
synthetic releases for held keys. The touchpad removes its keyboard
listener during the notification and misses those releases.
A key held when entering tablet mode can therefore remain in the
touchpad's DWT state after the keyboard is enabled again. A stale typing
key keeps suppression active; a stale modifier can prevent it from
activating.
Run the suspension callback before notifying paired devices, so their
listeners receive the releases before being removed. Add a regression
covering both typing and modifier keys.
Signed-off-by: assembledev <1267841-assembledev@users.noreply.gitlab.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1519>
|
|
Some Thinkpad devices like X19-14-Gen1 with a physical camera lens cover
expose the cover state via the EV_SW SW_CAMERA_LENS_COVER kernel event.
libinput currently ignores this switch, so callers cannot know when the
camera is covered.
Add the LIBINPUT_SWITCH_CAMERA_LENS_COVER switch type and plumb the kernel
event through the evdev/fallback layers. Like the keypad slide switch this
is a passthrough switch: the state is exposed to the caller via
LIBINPUT_EVENT_SWITCH_TOGGLE and no other devices are enabled or disabled
in response. When the switch is on the lens cover is closed and the camera
is not usable.
A compositor can use this to show an OSD when the cover is opened or
closed.
AI-assisted:
I've coded this with the support from Claude Code. All code was tested on real hardware and
reviewed for understanding.
Fixes: https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1343
Signed-off-by: Nitin Joshi <nitjoshi@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1518>
|
|
Add a new LIBINPUT_CONFIG_SCROLL_CIRCULAR scroll method for
physically round touchpads, where scrolling is triggered by finger
motion along the outer ring of the pad. This is the classic circular
scroll gesture the X11 synaptics driver used to support; it fits the
round trackpads shipped on the Panasonic Let's Note series (common
in Japanese corporate deployments) where 2fg scroll is impractical
because of pad size.
Behaviour:
- Zone is decided at touch-down and held for the touch's lifetime:
a finger that starts on the ring stays a scroll touch even if it
drifts inward; a finger that starts on the inner disc stays a
pointer touch even if it drifts outward.
- The scroll signal is the arc length swept on a virtual scroll
wheel whose rim sits at the middle of the ring zone. Using a
fixed reference radius means the same angular rotation produces
the same scroll regardless of finger radius. The arc-length
delta is fed through tp_filter_motion_unaccelerated() just like
2fg scroll's raw delta, so output is hardware-normalised and
consistent with 2fg across pad sizes.
- A ~1.5mm dead zone at the centre suppresses the atan2
singularity; a finger crossing dead centre would otherwise
fabricate a scroll spike.
- Follows libinput's positive-y-is-down convention: clockwise
motion scrolls down, counterclockwise scrolls up.
- Integrated with disable-while-typing: an active circular scroll
suppresses DWT, matching the edge/2fg scroll behaviour.
Hardware match is via a new ModelCircularTouchpad quirk. On matched
devices circular scroll is advertised exclusively and 2fg/edge
scroll are suppressed. First and only device in this patch is the
Panasonic Let's Note CF-SV1 (Synaptics TM3562, 06CB:CDEA), in
quirks/50-system-panasonic.quirks. Other round touchpads can be
added with further quirk entries; the implementation is not
model-specific.
Tests in test/test-touchpad.c cover: method exposure (default and
exclusivity), ring gesture emits scroll only, direction
(parametrised on cw/ccw and natural scroll), inner-zone drag emits
only pointer motion, intent lock (parametrised on start zone),
centre dead zone, method switching (NO_SCROLL <=> CIRCULAR), and
legacy POINTER_AXIS events carrying FINGER axis source. A synthetic
LITEST_PANASONIC_CF_SV1 virtual device backs the tests; it carries
only the new LITEST_CIRCULAR_TOUCHPAD feature flag so existing edge
and 2fg scroll tests do not run against it.
libinput-debug-events, libinput-list-devices, and the shared CLI
parser learn the new method name.
Tested end-to-end on real hardware (Panasonic CF-SV1 under Weston
with Chromium).
Closes: #1278
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1477>
|
|
t->is_tool_palm is only ever updated from ABS_MT_TOOL_TYPE events. The
kernel's per-slot tool type persists across touches and evdev only
reports changes, so tp_sync_touch() must fetch the current value just
like it does for position, pressure and touch major/minor.
If the value changes while our fd is closed - e.g. the device is
disabled via send-events DISABLED and the palm lifts, with the slot
reverting to MT_TOOL_FINGER - the touchpad keeps a stale
is_tool_palm=true for that slot after resume: evdev_device_resume()
re-syncs libevdev but discards the sync events, no future event
corrects the flag, and every new touch in that slot is flagged as
PALM_TOOL_PALM on its first frame, producing no pointer output.
The user-visible effect is an "N-1 finger" touchpad: one finger moves
nothing, two fingers act as single-finger motion, three fingers act as
a two-finger scroll. This persists until the firmware happens to
toggle the slot's tool type again or the device is recreated.
Reproduced on a SYNA3503 Precision touchpad (HP OmniBook X Flip 16):
resting a palm on the pad while disabling the device, then using it
normally after re-enabling, yields "N-2" behaviour from the two
palm-poisoned slots; a deliberate palm touch heals it instantly.
Closes: #1319
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: kk1987 <kk1987@gmail.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1505>
|
|
Might as well re-use this helper to de-duplicate some of the path.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1491>
|
|
If a single finger has been moving the pointer for at least 1 second
and has accumulated more than 20mm of total movement, don't activate
disable-while-typing. This is clearly intentional pointer movement, not
an accidental touch.
The cumulative distance tracks the total path length across all motion
events, not just the straight-line displacement from the starting
position. Once the threshold is exceeded, a flag is set and no further
distance calculation is needed.
Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1492>
|
|
If the user is in the middle of an ongoing action, don't enable dwt on
key press. A swipe, pinch, 2fg or edge scroll and a tap-and-drag are
actions that are definitely not palm presses so we do not need to pause
the motion. Likewise so is any motion while the button is held down.
Closes #1298
Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1492>
|
|
evdev_device_have_same_syspath() guards against opening the wrong
device by re-resolving the fd's st_rdev through udev and comparing
syspaths. On FreeBSD this works when the input device nodes are present
in the caller's devfs, but not inside a jail whose devfs does not expose
them: udev_device_new_from_devnum() then has nothing to resolve, and the
check rejects every fd -- even fds that a seat manager (e.g. seatd)
opened on the host and passed in.
On FreeBSD the evdev syspath (/dev/input/eventN) is determined by the
device's minor number, while the cached devnum carries both that minor
and the evdev major. Comparing the full devnum against fstat(fd).st_rdev
therefore verifies the same identity as the syspath comparison -- in
fact slightly more strongly, since it also confirms the major -- without
needing the device node to be visible to the caller. libudev-devd
populates that cached devnum from the kern.evdev.input.N.devnum sysctl,
which remains readable inside a jail.
Guard the new path with __FreeBSD__ and move the existing udev-based
lookup into the #else branch. The lookup is rewritten to return
directly on each exit instead of using a shared goto label, because the
FreeBSD branch returns before those locals are declared and would
otherwise leave them (and the label) unused on a FreeBSD build. Linux
behaviour is unchanged.
Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
Sponsored-by: Defenso
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1471>
|
|
../src/evdev-tablet.c: In function ‘tablet_init’:
../src/evdev-tablet.c:2921:26: warning: unused variable ‘li’ [-Wunused-variable]
2921 | struct libinput *li = evdev_libinput_context(device);
| ^~
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1495>
|
|
Fixes: 71a2c5cae2a8 ("util: sanitize control characters in str_sanitize()")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1493>
|
|
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1490>
|
|
str_sanitize() only escaped '%' characters for format string safety.
Device names from uinput devices can contain arbitrary bytes including
ANSI escape sequences (ESC, 0x1b) and other control characters. When
these strings are included in log messages and printed to a terminal,
the escape sequences are interpreted by the terminal emulator. This
could allow an attacker to manipulate terminal output (change colors,
set window title, clear screen) when an administrator views libinput
logs.
Replace all control characters (0x00-0x1f and 0x7f) with '?' in
addition to the existing '%' escaping. This prevents terminal escape
sequence injection through device names in log output.
Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1486>
|
|
we call log2() on both maximum and value so ensure they're never zero or
negative.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1486>
|
|
Reject devices that have extreme min/max values (might cause integer
overflow in libinput), negative resolutions and a min > max.
The former two could be triggered by malicious input devices.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1486>
|
|
We use the resolution later as divisor so let's protect agianst division
by zero. This is not an issue on the real device but a malicious uinput
device may try to trigger this.
Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1486>
|
|
dev was already freed, the device we want to check here is d so
technically this is a UAF bug. Fortunately for us, this condition was
never triggered - none of the current devices in libwacom that have a
PairedID setting are also touchpads (they're all display tablets).
Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1481>
|
|
Fixes: 75d4acfe94d0 ("util: allow for 'e' in safe_atod strings")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1475>
|
|
Same as e.g. g_clear_pointer(). Switch a number of obvious call sites
over to use this, the rest will come over time.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1472>
|
|
safe_strdup() handles NULL correctly instead of just blowing up. This
shouldn't matter because without a name our plugins won't get here but
let's do this anwyay.
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
|
|
stat() follows symbolic links which is definitely something we don't
want. If an attacker can place a symlink inside a directory being
recursively deleted (e.g. a temporary directory), stat() will report the
type of the symlink's target rather than the symlink itself. If the
target is a directory, rmdir_r() will follow the symlink and recursively
delete the target directory's contents outside the intended directory
tree.
This has no real effect, this is only used in the test suite.
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
|
|
This is purely to make Claude happy, the function is ifdef'd out and to
actually hit the limit we'd need more than ~25 slots active.
Anyway, the strv helpers make for much nicer code anyway.
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
|
|
1.5e2 is a valid string, so let's parse those.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
|
|
The implementation accepts LIBINPUT_EVENT_GESTURE_HOLD_END in
require_event_type() but the API documentation only listed SWIPE_END
and PINCH_END. This was likely missed when hold gesture support was
added.
Co-authored-by: Claude <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1469>
|
|
Co-authored-by: Claude <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1469>
|
|
We differ between a fast 3fg swipe and a 3fg drag based on whether we
move 5mm within 80ms of contact. Alas, the code started the timeout once
we had enough motion, not on initial contact.
Three fingers down, then resting for >80ms, then moving 5mm within the
subsequent 80ms would thus trigger a fast swipe because the timer wasn't
set until sufficient movement happened. Fix this by setting the timer
based on the initial touch point's time. This requires potentially
setting a negative timer to avoid duplicating parts of the state
machine.
Closes #1266
Fixes: fe1d44637f67 ("touchpad: add support for fast swipe when 3fg drag is enabled")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1466>
|
|
The arbitration rectangle previously only covered a region from 100mm
above the pen tip to 150mm below it (250mm total). This let a few
unintentional touches through such as when some of the fingers are
extended while using the pen. Likewise, a large hand could fall below
the bottom edge of the rectangle.
Change the rect to span the full height and width of the tablet while
keeping the same horizontal logic (200mm wide, starting 20mm from the
pen tip toward the hand side). Simplify a few things too, there is no
need for clipping the rect.
Related: #1276
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1463>
|
|
zalloc() aborts on allocation failure and it's what we use everywhere
else.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1465>
|
|
This simplifies the code and means we don't have to deal with snprintf
return values to ensure we're not truncating.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1465>
|
|
Use snprintf to make analyziers happier and bump the buffer size to 16.
That's way larger than we'll need given the kernel's PID_MAX_LIMIT
(4194304) but it doesn't cost us anything.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1465>
|
|
And abort if that ever happens because it really shouldn't.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1465>
|
|
nevents should never be zero but let's prevent against an underflow, if
only to make the analyzers happy.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1465>
|
|
luaL_loadfile() by default allows for both text files and precompiled
lua files. Precompiled files are not verified on load allowing for a
sandbox escape.
CVE-2026-35093
Fixes: #1271
Found-by: Koen Tange <koen@monokles.eu>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1459>
|
|
Previously we had one vtable for the libinputplugin and EvdevDevice
objects. This allowed plugins to call __gc(), a decidedly internal
method.
This fixes a use-after-free: A plugin that called EvdevDevice::__gc()
frees the plugin's copy of device->name but leaves the pointer in-place,
a subsequent call will thus cause a UAF read.
Fix this by separating what is the object's metatable from the public
methods that are accessible to a plugin.
CVE-2026-35094
Fixes: #1272
Found-by: Koen Tange <koen@monokles.eu>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1459>
|
|
If drag-lock is disabled but we're in a tap-and-drag state and the
finger is released near the edge (within 5mm), enable automatic drag
lock for 400ms. This allows a user to quickly reset the finger and
continue with the drag.
The 400ms is a randomly guessed timeout - if you're using tap-and-drag
without draglock, finger dexterity should be high enough that resetting
the single finger can be done quickly but it's also short enough to not
make the occasional delayed button be painful in day-to-day use.
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1447>
|
|
Follow-up from commit dcbfbc4cf1c0 ("util: fix usec computation on 32 bits")
which didn't fix all instances, make this consistent.
Fixes: dcbfbc4cf1c0 ("util: fix usec computation on 32 bits")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1453>
|
|
Copy/paste caused only the abs axes being disabled (REL_X == ABS_X,
etc. so the EV_REL bits had no effect).
Found-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1453>
|
|
Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1452>
|
|
If the SYN_REPORT has a value of nonzero we need to keep that value in
the frame - our upper layers rely on this to detect repeat frames.
Closes #1261
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1449>
|