tools: fix swapped strstartswith arguments in find_device()

Co-Authored-by: Claude Code <noreply@anthropic.com>
(cherry picked from commit 333d7131ab)

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1468>
This commit is contained in:
Peter Hutterer 2026-03-11 20:52:51 +10:00
parent d947ae8208
commit 14759465f2

View file

@ -787,7 +787,7 @@ find_device(const char *udev_tag)
continue;
const char *sysname = udev_device_get_sysname(device);
if (!strstartswith("event", sysname)) {
if (!strstartswith(sysname, "event")) {
continue;
}