mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-22 22:40:22 +01:00
test: don't assign -1/-1 to x/y on proximity out
This only worked because any all our test devices declare a fixed 0 value for x/y in the proximity out event frame. Since 0 != LITEST_AUTO_ASSIGN we never got to the litest_scale() for x/y which would abort because of the -1 value. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1398>
This commit is contained in:
parent
c9e175a507
commit
c8e0312195
1 changed files with 1 additions and 1 deletions
|
|
@ -3001,7 +3001,7 @@ litest_tablet_proximity_out(struct litest_device *d)
|
|||
litest_tool_event(d, ev->value);
|
||||
break;
|
||||
default:
|
||||
value = auto_assign_tablet_value(d, ev, -1, -1, NULL);
|
||||
value = auto_assign_tablet_value(d, ev, 0, 0, NULL);
|
||||
if (!tablet_ignore_event(ev, value))
|
||||
litest_event(d, ev->type, ev->code, value);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue