mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -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
|
|
@ -15,13 +15,12 @@
|
|||
|
||||
void wlr_input_device_init(struct wlr_input_device *dev,
|
||||
enum wlr_input_device_type type,
|
||||
const struct wlr_input_device_impl *impl,
|
||||
const char *name, int vendor, int product) {
|
||||
const struct wlr_input_device_impl *impl, const char *name) {
|
||||
dev->type = type;
|
||||
dev->impl = impl;
|
||||
dev->name = strdup(name);
|
||||
dev->vendor = vendor;
|
||||
dev->product = product;
|
||||
dev->vendor = 0;
|
||||
dev->product = 0;
|
||||
|
||||
wl_signal_init(&dev->events.destroy);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -207,8 +207,7 @@ static void virtual_keyboard_manager_create_virtual_keyboard(
|
|||
virtual_keyboard, virtual_keyboard_destroy_resource);
|
||||
|
||||
wlr_input_device_init(&virtual_keyboard->input_device,
|
||||
WLR_INPUT_DEVICE_KEYBOARD, &input_device_impl, "virtual keyboard",
|
||||
0x0, 0x0);
|
||||
WLR_INPUT_DEVICE_KEYBOARD, &input_device_impl, "virtual keyboard");
|
||||
|
||||
struct wlr_seat_client *seat_client = wlr_seat_client_from_resource(seat);
|
||||
|
||||
|
|
|
|||
|
|
@ -270,8 +270,7 @@ static void virtual_pointer_manager_create_virtual_pointer_with_output(
|
|||
virtual_pointer, virtual_pointer_destroy_resource);
|
||||
|
||||
wlr_input_device_init(&virtual_pointer->input_device,
|
||||
WLR_INPUT_DEVICE_POINTER, &input_device_impl, "virtual pointer",
|
||||
0x0, 0x0);
|
||||
WLR_INPUT_DEVICE_POINTER, &input_device_impl, "virtual pointer");
|
||||
|
||||
struct wlr_virtual_pointer_v1_new_pointer_event event = {
|
||||
.new_pointer = virtual_pointer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue