mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
libinput backend: fill in handle_device_removed
And fix input_remove_notify accordingly
This commit is contained in:
parent
65a8999242
commit
be3a0ad065
2 changed files with 17 additions and 5 deletions
|
|
@ -384,14 +384,13 @@ static void tablet_pad_remove(struct wlr_input_device *device, struct compositor
|
|||
if (!pstate) {
|
||||
return;
|
||||
}
|
||||
// TODO probably missing more actions
|
||||
wl_list_remove(&pstate->button.link);
|
||||
free(pstate);
|
||||
}
|
||||
|
||||
// TODO missing something that calls this on teardown
|
||||
static void input_remove_notify(struct wl_listener *listener, void *data) {
|
||||
struct wlr_input_device *device = data;
|
||||
struct compositor_state *state = wl_container_of(listener, state, input_add);
|
||||
struct compositor_state *state = wl_container_of(listener, state, input_remove);
|
||||
switch (device->type) {
|
||||
case WLR_INPUT_DEVICE_KEYBOARD:
|
||||
keyboard_remove(device, state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue