rcxml: revise drag-lock behavior and option names

This revises the changes done in 22d319c:
- Cancel defaulting to <dragLock>sticky<dragLock>. So labwc now disables
  drag-lock by default, as libinput does.
- Update the options from [yes|no|sticky] to [timeout|no|yes] to
  emphasize that the "sticky" mode (now "yes") is recommended when using
  drag-lock.
This commit is contained in:
tokyo4j 2025-06-30 16:42:45 +09:00 committed by Hiroaki Yamamoto
parent e365d5eaf0
commit d7fd23e52d
4 changed files with 18 additions and 21 deletions

View file

@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <string.h>
#include <strings.h>
#include "config.h"
#include "common/mem.h"
#include "common/list.h"
#include "common/string-helpers.h"
@ -19,11 +18,7 @@ libinput_category_init(struct libinput_category *l)
l->tap = LIBINPUT_CONFIG_TAP_ENABLED;
l->tap_button_map = LIBINPUT_CONFIG_TAP_MAP_LRM;
l->tap_and_drag = -1;
#if HAVE_LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY
l->drag_lock = LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY;
#else
l->drag_lock = -1;
#endif
l->three_finger_drag = -1;
l->accel_profile = -1;
l->middle_emu = -1;