libinput: support <dragLock>sticky<dragLock> and enable it by default

It is recommended by libinput:
https://lists.freedesktop.org/archives/wayland-devel/2024-November/043860.html
This commit is contained in:
tokyo4j 2025-06-07 19:27:05 +09:00 committed by Johan Malm
parent cc84cee75b
commit 22d319cce8
5 changed files with 26 additions and 6 deletions

View file

@ -958,7 +958,7 @@ extending outward from the snapped edge.
<tap>yes</tap>
<tapButtonMap></tapButtonMap>
<tapAndDrag></tapAndDrag>
<dragLock></dragLock>
<dragLock>sticky</dragLock>
<middleEmulation></middleEmulation>
<disableWhileTyping></disableWhileTyping>
<clickMethod></clickMethod>
@ -1027,9 +1027,11 @@ extending outward from the snapped edge.
Enable or disable tap-and-drag for this category. Tap-and-drag processes
a tap immediately followed by a finger down as the start of a drag.
*<libinput><device><dragLock>* [yes|no]
Enable or disable drag lock for this category. Drag lock ignores a
momentary release of a finger during tap-and-dragging.
*<libinput><device><dragLock>* [yes|no|sticky]
Enable or disable drag lock for this category. Drag lock ignores a temporary
release of a finger during tap-and-dragging. Both *yes* and *sticky* enable
drag lock, but if *yes* is set, the drag lock expires after a timeout.
Default is *sticky*.
*<libinput><device><middleEmulation>* [yes|no]
Enable or disable middle button emulation for this category. Middle

View file

@ -632,7 +632,7 @@
<tap>yes</tap>
<tapButtonMap></tapButtonMap>
<tapAndDrag></tapAndDrag>
<dragLock></dragLock>
<dragLock>sticky</dragLock>
<middleEmulation></middleEmulation>
<disableWhileTyping></disableWhileTyping>
<clickMethod></clickMethod>