tools: only call libinput_dispatch() once per poll

This is a closer approximation of all callers anyway, and it makes it easier
to debug which events are handled per libinput_dispatch() call.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-10-06 15:04:08 +10:00
parent ec939611fd
commit 7244e36b50
3 changed files with 0 additions and 3 deletions

View file

@ -917,7 +917,6 @@ handle_and_print_events(struct libinput *li)
}
libinput_event_destroy(ev);
libinput_dispatch(li);
rc = 0;
}
return rc;

View file

@ -1487,7 +1487,6 @@ handle_event_libinput(GIOChannel *source, GIOCondition condition, gpointer data)
}
libinput_event_destroy(ev);
libinput_dispatch(li);
}
gtk_widget_queue_draw(w->area);

View file

@ -390,7 +390,6 @@ handle_libinput_events(struct context *ctx)
}
libinput_event_destroy(ev);
libinput_dispatch(li);
}
}