aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/keyboard.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/keyboard.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/keyboard.c')
-rw-r--r--backend/libinput/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c
index 2e5e6ef1..9cdc72af 100644
--- a/backend/libinput/keyboard.c
+++ b/backend/libinput/keyboard.c
@@ -23,7 +23,7 @@ const struct wlr_keyboard_impl libinput_keyboard_impl = {
};
void init_device_keyboard(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_keyboard *wlr_kb = &dev->keyboard;
wlr_keyboard_init(wlr_kb, &libinput_keyboard_impl, name);
wlr_kb->base.vendor = libinput_device_get_id_vendor(dev->handle);