mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-27 13:50:08 +01:00
evdev: Do not perform spurious detection when spurious is already enabled
When exiting RELEASE_DELAYED state, do not transition into states to detect the need for spurious mode (RELEASE_WAITING, MAYBE_SPURIOUS). RELEASE_DELAYED is only entered when spurious mode is enabled, there is no need to detect the need for spurious mode again.
This commit is contained in:
parent
5dae7aac38
commit
fa73b3b307
2 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 80 KiB |
|
|
@ -287,7 +287,7 @@ debounce_release_delayed_handle_event(struct fallback_dispatch *fallback, enum d
|
|||
log_debounce_bug(fallback, event);
|
||||
break;
|
||||
case DEBOUNCE_EVENT_TIMEOUT_SHORT:
|
||||
debounce_set_state(fallback, DEBOUNCE_STATE_RELEASE_WAITING);
|
||||
debounce_set_state(fallback, DEBOUNCE_STATE_RELEASED);
|
||||
debounce_notify_button(fallback,
|
||||
LIBINPUT_BUTTON_STATE_RELEASED);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue