mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 08:30:07 +01:00
test: Queue two motion events in pointer event conversion test
Pointer acceleration filters may absorb the first event, so queue two, just in case. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
a8d95a1afb
commit
d4b66061b3
1 changed files with 5 additions and 0 deletions
|
|
@ -158,6 +158,11 @@ START_TEST(event_conversion_pointer)
|
|||
li = libinput_path_create_context(&simple_interface, NULL);
|
||||
libinput_path_add_device(li, libevdev_uinput_get_devnode(uinput));
|
||||
|
||||
/* Queue at least two relative motion events as the first one may
|
||||
* be absorbed by the pointer acceleration filter. */
|
||||
libevdev_uinput_write_event(uinput, EV_REL, REL_X, -1);
|
||||
libevdev_uinput_write_event(uinput, EV_REL, REL_Y, -1);
|
||||
libevdev_uinput_write_event(uinput, EV_SYN, SYN_REPORT, 0);
|
||||
libevdev_uinput_write_event(uinput, EV_REL, REL_X, -1);
|
||||
libevdev_uinput_write_event(uinput, EV_REL, REL_Y, -1);
|
||||
libevdev_uinput_write_event(uinput, EV_KEY, BTN_LEFT, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue