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:
Benjamin Poirier 2019-01-04 16:03:38 +09:00 committed by Peter Hutterer
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

View file

@ -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;