client: Clean up tablet_pad_group proxy
While Qt cannot do anything with them right now, these are server created proxies and still need to be destroyed to be not leaked. Pick-to: 6.9 6.8 Change-Id: I5fad05c6bbb05782bb997204b3dada80ab28b98e Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
d8e205a003
commit
f277586291
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user