Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/wayland/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,13 @@ void tool_added(void *data, struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2,
zwp_tablet_tool_v2_add_listener(tablet_tool, &tablet_tool_listener, NULL);
}

void pad_added(void *data, struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2,
struct zwp_tablet_pad_v2 *zwp_tablet_pad_v2) {}

static const struct zwp_tablet_seat_v2_listener tablet_seat_listener = {
.tool_added = tool_added,
.tablet_added = tablet_added,
.tool_added = tool_added,
.pad_added = pad_added,
};

void touch_down(void *data, struct wl_touch *wl_touch, uint serial, uint time,
Expand Down
3 changes: 3 additions & 0 deletions pkg/wayland/wayland.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ void tablet_added(void *data, struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2,
void tool_added(void *data, struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2,
struct zwp_tablet_tool_v2 *zwp_tablet_tool_v2);

void pad_added(void *data, struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2,
struct zwp_tablet_pad_v2 *zwp_tablet_pad_v2);

void tablet_tool_removed(void *data, struct zwp_tablet_tool_v2 *id);

void tablet_tool_down(void *data, struct zwp_tablet_tool_v2 *id,
Expand Down
Loading