From 0b23cb1ba222ecd122dfdb4f6879041e92974cf3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 26 Mar 2021 12:56:43 +1000 Subject: [PATCH] tools/record: append the devices in-order Using list_insert() here means the last device specified on the commandline is the one that ends up in the file first - not very obvious... Signed-off-by: Peter Hutterer --- tools/libinput-record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 6357319f..08123852 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -2466,7 +2466,7 @@ init_device(struct record_context *ctx, const char *path, bool grab) if (libevdev_get_num_slots(d->evdev) > 0) d->touch.is_touch_device = true; - list_insert(&ctx->devices, &d->link); + list_append(&ctx->devices, &d->link); ctx->ndevices++; return true;