[PATCH weston 04/25] libinput: log input device to output associations

Pekka Paalanen ppaalanen at gmail.com
Fri Mar 23 12:00:44 UTC 2018


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Helps admins ensure the configuration is correct.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston/libinput-device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libweston/libinput-device.c b/libweston/libinput-device.c
index 64d99f75..d391d63e 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.16.1



More information about the wayland-devel mailing list