mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
Remove wl_list_init when using wl_signal_add
This commit is contained in:
parent
1782d5e7b7
commit
c8570d0e42
13 changed files with 17 additions and 84 deletions
|
|
@ -130,7 +130,6 @@ void keyboard_add(struct wlr_input_device *device, struct roots_input *input) {
|
|||
device->data = keyboard;
|
||||
keyboard->device = device;
|
||||
keyboard->input = input;
|
||||
wl_list_init(&keyboard->key.link);
|
||||
keyboard->key.notify = keyboard_key_notify;
|
||||
wl_signal_add(&device->keyboard->events.key, &keyboard->key);
|
||||
wl_list_insert(&input->keyboards, &keyboard->link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue