From ee70932422718809da88700536d4a7ddde024813 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 29 Feb 2024 12:08:02 +0100 Subject: backend/libinput: use NULL to indicate missing device name libinput guarantees that the name is non-NULL, and an empty string if unset. However wlroots uses NULL to indicate that an input device name is unset. --- backend/libinput/tablet_tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/libinput/tablet_tool.c') diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index f3266c28..9747c758 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -17,7 +17,7 @@ const struct wlr_tablet_impl libinput_tablet_impl = { }; void init_device_tablet(struct wlr_libinput_input_device *dev) { - const char *name = libinput_device_get_name(dev->handle); + const char *name = get_libinput_device_name(dev->handle); struct wlr_tablet *wlr_tablet = &dev->tablet; wlr_tablet_init(wlr_tablet, &libinput_tablet_impl, name); wlr_tablet->base.vendor = libinput_device_get_id_vendor(dev->handle); -- cgit v1.2.3