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 /include/backend | |
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 'include/backend')
-rw-r--r-- | include/backend/libinput.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 910af47f..bf5a306f 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -48,6 +48,7 @@ void handle_libinput_event(struct wlr_libinput_backend *state, struct libinput_event *event); void destroy_libinput_input_device(struct wlr_libinput_input_device *dev); +const char *get_libinput_device_name(struct libinput_device *device); extern const struct wlr_keyboard_impl libinput_keyboard_impl; extern const struct wlr_pointer_impl libinput_pointer_impl; |