Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayland: Clean up tablet object management #9448

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kontrabant
Copy link
Contributor

@Kontrabant Kontrabant commented Apr 4, 2024

  • Use intrusive wl_list nodes instead of the generic list for tracking tablet objects
  • Register listeners for tablet and pad objects, so they will be freed if dynamically released instead of being leaked.
  • Remove some unnecessary indirection involving the tool user data, when the same data is passed directly into the callbacks via the 'data' parameter.
  • Remove an unused parameter from the 'Wayland_get_current_pen' function.
  • Rename the 'tablet' member of the tool struct to 'tablet_input' since it is pointing to the tablet input manager and not an individual tablet object.

cc: @creichen for testing and review

@creichen
Copy link
Contributor

creichen commented Apr 4, 2024

Looks like a very nice cleanup at first glance, @Kontrabant-- I will find some time to have a closer look and test it out soon.

- Use intrusive wl_list nodes instead of the generic list for tracking tablet objects.
- Register listeners for tablet and pad objects, so they will be freed if dynamically released instead of being leaked.
- Remove some unnecessary indirection involving the tool user data, when the same data is passed directly into the callbacks via the 'data' parameter.
- Remove an unused parameter from the 'Wayland_get_current_pen' function.
- Rename the 'tablet' member of the tool struct to 'tablet_input' since it is pointing to the tablet input manager and not an individual tablet object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants