mirror of
https://github.com/hyprwm/aquamarine.git
synced 2026-05-09 01:48:13 +02:00
libinput: fix pad groups not being ref'd (#227)
Without refing pad groups they would get destroyed when the current event gets out of scope, causing a segfault when destroying a CLibinputTabletPad.
This commit is contained in:
parent
96b53bcb42
commit
b8a0c5ba5a
1 changed files with 1 additions and 0 deletions
|
|
@ -1140,6 +1140,7 @@ const std::string& Aquamarine::CLibinputTabletPad::getName() {
|
|||
|
||||
SP<ITabletPad::STabletPadGroup> Aquamarine::CLibinputTabletPad::createGroupFromID(int id) {
|
||||
auto libinputGroup = libinput_device_tablet_pad_get_mode_group(device->device, id);
|
||||
libinput_tablet_pad_mode_group_ref(libinputGroup);
|
||||
|
||||
auto group = makeShared<STabletPadGroup>();
|
||||
for (size_t i = 0; i < rings; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue