types/wlr_input_device: default vendor and product id to 0

vendor and product id are set when needed by the libinput backend
This commit is contained in:
Simon Zeni 2022-02-04 09:26:57 -05:00 committed by Kirill Primak
parent 7d560df90e
commit 71577e351e
8 changed files with 15 additions and 24 deletions

View file

@ -466,8 +466,6 @@ struct wlr_wl_input_device *create_wl_input_device(
struct wlr_input_device *wlr_dev = &dev->wlr_input_device;
unsigned int vendor = 0, product = 0;
const char *type_name = "unknown";
switch (type) {
@ -495,8 +493,7 @@ struct wlr_wl_input_device *create_wl_input_device(
char name[name_size];
(void) snprintf(name, name_size, "wayland-%s-%s", type_name, seat->name);
wlr_input_device_init(wlr_dev, type, &input_device_impl, name, vendor,
product);
wlr_input_device_init(wlr_dev, type, &input_device_impl, name);
wl_list_insert(&seat->backend->devices, &dev->link);
return dev;
}