From 6632b6dc725ade9daa7136cc7096eaeea3c29d9d Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 18 Apr 2017 12:22:12 +0300 Subject: [PATCH] libinput: log input device to output associations Helps admins ensure the configuration is correct. Signed-off-by: Pekka Paalanen Reviewed-by: Peter Hutterer --- libweston/libinput-device.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c index 64d99f7..d391d63 100644 --- a/libweston/libinput-device.c +++ b/libweston/libinput-device.c @@ -554,6 +554,12 @@ evdev_device_set_output(struct evdev_device *device, device->output_destroy_listener.notify = NULL; } + weston_log("associating input device %s with output %s " + "(%s by udev)\n", + libinput_device_get_sysname(device->device), + output->name, + device->output_name ?: "none"); + device->output = output; device->output_destroy_listener.notify = notify_output_destroy; wl_signal_add(&output->destroy_signal, -- 2.7.4