Function input_sys::libinput_device_config_tap_set_drag_lock_enabled[][src]

pub unsafe extern "C" fn libinput_device_config_tap_set_drag_lock_enabled(
    device: *mut libinput_device,
    enable: libinput_config_drag_lock_state
) -> libinput_config_status
Expand description

@ingroup config

Enable or disable drag-lock during tapping on this device. When enabled, a finger may be lifted and put back on the touchpad within a timeout and the drag process continues. When disabled, lifting the finger during a tap-and-drag will immediately stop the drag. See the libinput documentation for more details.

Enabling drag lock on a device that has tapping disabled is permitted, but has no effect until tapping is enabled.

@param device The device to configure @param enable @ref LIBINPUT_CONFIG_DRAG_LOCK_ENABLED to enable drag lock or @ref LIBINPUT_CONFIG_DRAG_LOCK_DISABLED to disable drag lock

@return A config status code. Disabling drag lock on a device that does not support tapping always succeeds.

@see libinput_device_config_tap_get_drag_lock_enabled @see libinput_device_config_tap_get_default_drag_lock_enabled