diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-29 12:08:02 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-02-29 12:08:02 +0100 |
commit | ee70932422718809da88700536d4a7ddde024813 (patch) | |
tree | 25012f050cabcdf6e9c7175b1872e0f1ff332fa2 /backend/libinput/tablet_pad.c | |
parent | 488a23c16908a83041cf28e134a6f149d831598d (diff) |
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.
Diffstat (limited to 'backend/libinput/tablet_pad.c')
-rw-r--r-- | backend/libinput/tablet_pad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c index 3cf7f142..864fcf88 100644 --- a/backend/libinput/tablet_pad.c +++ b/backend/libinput/tablet_pad.c @@ -90,7 +90,7 @@ group_fail: void init_device_tablet_pad(struct wlr_libinput_input_device *dev) { struct libinput_device *handle = dev->handle; - const char *name = libinput_device_get_name(handle); + const char *name = get_libinput_device_name(handle); struct wlr_tablet_pad *wlr_tablet_pad = &dev->tablet_pad; wlr_tablet_pad_init(wlr_tablet_pad, &libinput_tablet_pad_impl, name); wlr_tablet_pad->base.vendor = libinput_device_get_id_vendor(handle); |