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: Simplify cursor code and fix custom cursors #96973

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

Riteo
Copy link
Contributor

@Riteo Riteo commented Sep 13, 2024

Initially the WaylandThread cursor code was supposed to be as stateless as possible but, as time went on, this wasn't possible.

This expectation made the resulting API quite convoluted, so this patch aims to simplify it substantially bot in terms of API surface and, most importantly, in terms of actual implementation complexity.

This patch also fixes custom cursors since I accidentally changed the mmap flags to MAP_PRIVATE some time ago. This took me hours to notice.


This is another one that both comes from the power of hindsight™ (since I've left the code alone for a bit) and the recent CSD PR. I wanted to add an "override" cursor logic and then I stumbled on this small distraction :P

Initially the WaylandThread cursor code was supposed to be as stateless
as possible but, as time went on, this wasn't possible.

This expectation made the resulting API quite convoluted, so this patch
aims to simplify it substantially bot in terms of API surface and, most
importantly, in terms of actual implementation complexity.

This patch also fixes custom cursors since I accidentally changed the
mmap flags to MAP_PRIVATE some time ago. This took me hours to notice.
@akien-mga akien-mga merged commit 4215dfd into godotengine:master Sep 16, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants