input-settings/native: Default to sticky drag lock

libinput 1.27 added a new "sticky" mode to the tap-and-drag drag lock -
the previous mode is now called the "timeout" mode.

In sticky mode the drag lock is explicitly terminated with an extra tap,
i.e. a full sequence is:
        tap, down, [:move, up, wait, down:], up, tap
where the middle part can repeat and/or wait as long as required.

In the previous "timeout" mode the drag lock would automatically release
after a timeout - for users with low dexterity this timeout may be too
short.

The sticky mode is also how macos does drag lock.

Related: https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2798
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4292>
This commit is contained in:
Peter Hutterer 2025-02-19 12:02:10 +10:00 committed by Marge Bot
parent 045342eb5a
commit aaf6c88226
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ wayland_server_req = '>= 1.23'
wayland_protocols_req = '>= 1.38'
# native backend version requirements
libinput_req = '>= 1.26.0'
libinput_req = '>= 1.27.0'
gbm_req = '>= 21.3'
libdrm_req = '>= 2.4.118'

View File

@ -249,7 +249,7 @@ meta_input_settings_native_set_tap_and_drag_lock_enabled (MetaInputSettings *se
if (libinput_device_config_tap_get_finger_count (libinput_device) > 0)
libinput_device_config_tap_set_drag_lock_enabled (libinput_device,
enabled ?
LIBINPUT_CONFIG_DRAG_LOCK_ENABLED :
LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY :
LIBINPUT_CONFIG_DRAG_LOCK_DISABLED);
}