mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 04:18:01 +02:00
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:
parent
ec939611fd
commit
7244e36b50
3 changed files with 0 additions and 3 deletions
|
|
@ -917,7 +917,6 @@ handle_and_print_events(struct libinput *li)
|
||||||
}
|
}
|
||||||
|
|
||||||
libinput_event_destroy(ev);
|
libinput_event_destroy(ev);
|
||||||
libinput_dispatch(li);
|
|
||||||
rc = 0;
|
rc = 0;
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
||||||
|
|
@ -1487,7 +1487,6 @@ handle_event_libinput(GIOChannel *source, GIOCondition condition, gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
libinput_event_destroy(ev);
|
libinput_event_destroy(ev);
|
||||||
libinput_dispatch(li);
|
|
||||||
}
|
}
|
||||||
gtk_widget_queue_draw(w->area);
|
gtk_widget_queue_draw(w->area);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -390,7 +390,6 @@ handle_libinput_events(struct context *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
libinput_event_destroy(ev);
|
libinput_event_destroy(ev);
|
||||||
libinput_dispatch(li);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue