Merge branch '260427' into 'master'

backend/session: fix wlr_device remove

See merge request wlroots/wlroots!5359
This commit is contained in:
Liu Peng 2026-06-11 19:13:12 +08:00
commit f6d3ab26ad
3 changed files with 18 additions and 11 deletions

View file

@ -135,10 +135,10 @@ static void create_device(struct wl_resource *manager_resource, uint32_t id,
wl_signal_add(&seat_client->events.destroy, &device->seat_client_destroy);
if (tablet_tool != NULL) {
device->tablet_tool_destroy.notify = device_handle_tablet_tool_destroy;
wl_signal_add(&tablet_tool->wlr_tool->events.destroy, &device->tablet_tool_destroy);
device->tablet_tool_destroy.notify = device_handle_tablet_tool_destroy;
wl_signal_add(&tablet_tool->wlr_tool->events.destroy, &device->tablet_tool_destroy);
} else {
wl_list_init(&device->tablet_tool_destroy.link);
wl_list_init(&device->tablet_tool_destroy.link);
}
wl_resource_set_user_data(device_resource, device);