mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Move initialization of wlr_tablet_pad into types/wlr_tablet_pad
This commit is contained in:
parent
020a33e057
commit
57babd2e13
3 changed files with 8 additions and 5 deletions
|
|
@ -462,8 +462,10 @@ uint32_t wlr_send_tablet_v2_tablet_pad_enter(
|
|||
uint32_t time = now.tv_nsec / 1000;
|
||||
|
||||
for (size_t i = 0; i < pad->group_count; ++i) {
|
||||
zwp_tablet_pad_group_v2_send_mode_switch(
|
||||
pad_client->groups[i], time, serial, pad->groups[i]);
|
||||
if (pad_client->groups[i]) {
|
||||
zwp_tablet_pad_group_v2_send_mode_switch(
|
||||
pad_client->groups[i], time, serial, pad->groups[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return serial;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ void wlr_tablet_pad_init(struct wlr_tablet_pad *pad,
|
|||
wl_signal_init(&pad->events.ring);
|
||||
wl_signal_init(&pad->events.strip);
|
||||
wl_signal_init(&pad->events.attach_tablet);
|
||||
|
||||
wl_list_init(&pad->groups);
|
||||
wlr_list_init(&pad->paths);
|
||||
}
|
||||
|
||||
void wlr_tablet_pad_destroy(struct wlr_tablet_pad *pad) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue