types/wlr_tablet_pad: add base wlr_input_device

wlr_tablet_pad owns its wlr_input_device. It will be initialized when the
tablet pad is initialized, and finished when the tablet pad is destroyed.
This commit is contained in:
Simon Zeni 2022-02-01 10:25:28 -05:00 committed by Kirill Primak
parent 0f3b38365d
commit a662743610
5 changed files with 14 additions and 4 deletions

View file

@ -453,7 +453,7 @@ static void handle_pad_added(void *data,
zwp_tablet_pad_v2_destroy(id);
return;
}
wlr_tablet_pad_init(wlr_dev->tablet_pad, NULL);
wlr_tablet_pad_init(wlr_dev->tablet_pad, NULL, wlr_dev->name);
zwp_tablet_pad_v2_add_listener(id, &tablet_pad_listener, dev);
}