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:
Peter Hutterer 2026-01-08 17:54:26 +10:00 committed by Marge Bot
parent c9e175a507
commit c8e0312195

View file

@ -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;