aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/touch.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2024-02-29 12:08:02 +0100
committerSimon Ser <contact@emersion.fr>2024-02-29 12:08:02 +0100
commitee70932422718809da88700536d4a7ddde024813 (patch)
tree25012f050cabcdf6e9c7175b1872e0f1ff332fa2 /backend/libinput/touch.c
parent488a23c16908a83041cf28e134a6f149d831598d (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/touch.c')
-rw-r--r--backend/libinput/touch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/libinput/touch.c b/backend/libinput/touch.c
index 14713b5b..ceb21679 100644
--- a/backend/libinput/touch.c
+++ b/backend/libinput/touch.c
@@ -8,7 +8,7 @@ const struct wlr_touch_impl libinput_touch_impl = {
};
void init_device_touch(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_touch *wlr_touch = &dev->touch;
wlr_touch_init(wlr_touch, &libinput_touch_impl, name);
wlr_touch->base.vendor = libinput_device_get_id_vendor(dev->handle);