From aaf6c882261ecfde9f6f40dab1d38908ffef2d02 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 19 Feb 2025 12:02:10 +1000 Subject: [PATCH] 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: --- meson.build | 2 +- src/backends/native/meta-input-settings-native.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 02c0c7590..f13554d21 100644 --- a/meson.build +++ b/meson.build @@ -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' diff --git a/src/backends/native/meta-input-settings-native.c b/src/backends/native/meta-input-settings-native.c index 34e2977c8..91d317129 100644 --- a/src/backends/native/meta-input-settings-native.c +++ b/src/backends/native/meta-input-settings-native.c @@ -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); }