mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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:
parent
7d560df90e
commit
71577e351e
8 changed files with 15 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue