diff --git a/src/plugins/platforms/wayland/qwaylandtabletv2.cpp b/src/plugins/platforms/wayland/qwaylandtabletv2.cpp index ce5261d0c62..3cfcdfe7d00 100644 --- a/src/plugins/platforms/wayland/qwaylandtabletv2.cpp +++ b/src/plugins/platforms/wayland/qwaylandtabletv2.cpp @@ -615,6 +615,13 @@ void QWaylandTabletPadV2::zwp_tablet_pad_v2_buttons(uint32_t buttons) d->buttonCount = buttons; } +void QWaylandTabletPadV2::zwp_tablet_pad_v2_group(zwp_tablet_pad_group_v2 *pad_group) +{ + // As of writing Qt does not handle tablet pads group and the controls on it + // This proxy is server created so it is just deleted here to not leak it + zwp_tablet_pad_group_v2_destroy(pad_group); +} + void QWaylandTabletPadV2::zwp_tablet_pad_v2_done() { QWindowSystemInterface::registerInputDevice(this); diff --git a/src/plugins/platforms/wayland/qwaylandtabletv2_p.h b/src/plugins/platforms/wayland/qwaylandtabletv2_p.h index f0d7cd189bb..6c8ef272723 100644 --- a/src/plugins/platforms/wayland/qwaylandtabletv2_p.h +++ b/src/plugins/platforms/wayland/qwaylandtabletv2_p.h @@ -185,7 +185,7 @@ public: ~QWaylandTabletPadV2(); protected: -// void zwp_tablet_pad_v2_group(struct ::zwp_tablet_pad_group_v2 *pad_group) override; + void zwp_tablet_pad_v2_group(struct ::zwp_tablet_pad_group_v2 *pad_group) override; void zwp_tablet_pad_v2_path(const QString &path) override; void zwp_tablet_pad_v2_buttons(uint32_t buttons) override; void zwp_tablet_pad_v2_done() override;