summaryrefslogtreecommitdiff
path: root/src/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland')
-rw-r--r--src/wayland/pointer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wayland/pointer.c b/src/wayland/pointer.c
index 3341d35..5924eb1 100644
--- a/src/wayland/pointer.c
+++ b/src/wayland/pointer.c
@@ -948,7 +948,9 @@ static const struct zwp_tablet_v2_listener tablet_listener = {
.done = tablet_done, .removed = tablet_removed, .bustype = tablet_bustype,
};
-static void tablet_pad_group(void *data, struct zwp_tablet_pad_v2 *pad, struct zwp_tablet_pad_group_v2 *group) { (void)data; (void)pad; (void)group; }
+/* yasl does not use pad groups. The group proxy belongs to the client, so
+ * destroy it here rather than leak it. */
+static void tablet_pad_group(void *data, struct zwp_tablet_pad_v2 *pad, struct zwp_tablet_pad_group_v2 *group) { (void)data; (void)pad; zwp_tablet_pad_group_v2_destroy(group); }
static void tablet_pad_path(void *data, struct zwp_tablet_pad_v2 *pad, const char *path) { (void)data; (void)pad; (void)path; }
static void tablet_pad_buttons(void *data, struct zwp_tablet_pad_v2 *pad, uint32_t buttons) { (void)data; (void)pad; (void)buttons; }
static void tablet_pad_done(void *data, struct zwp_tablet_pad_v2 *pad) { (void)data; (void)pad; }