mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 13:30:27 +01:00
tools: don't call is_cancelled on a gesture begin event
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
57702509dc
commit
c19e72f4af
1 changed files with 8 additions and 1 deletions
|
|
@ -307,7 +307,14 @@ print_gesture_event_without_coords(struct libinput_event *ev)
|
|||
{
|
||||
struct libinput_event_gesture *t = libinput_event_get_gesture_event(ev);
|
||||
int finger_count = libinput_event_gesture_get_finger_count(t);
|
||||
int cancelled = libinput_event_gesture_get_cancelled(t);
|
||||
int cancelled = 0;
|
||||
enum libinput_event_type type;
|
||||
|
||||
type = libinput_event_get_type(ev);
|
||||
|
||||
if (type == LIBINPUT_EVENT_GESTURE_SWIPE_END ||
|
||||
type == LIBINPUT_EVENT_GESTURE_PINCH_END)
|
||||
cancelled = libinput_event_gesture_get_cancelled(t);
|
||||
|
||||
print_event_time(libinput_event_gesture_get_time(t));
|
||||
printf("%d%s\n", finger_count, cancelled ? " cancelled" : "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue