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

X11: cache custom cursors #3366

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

daxpedda
Copy link
Member

@daxpedda daxpedda commented Jan 5, 2024

Addresses #3306.

Wayland isn't really affected, just needed some slight refactoring to account for different backends.

RootCustomCursor {
inner: PlatformCustomCursor::X11(_),
} => {
error!("passed a X11 cursor to Wayland backend");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could change those to unreachable!, because you can't recreate event loops on those platforms, right?

Copy link
Member

@notgull notgull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@daxpedda daxpedda merged commit d1717b6 into rust-windowing:master Jan 17, 2024
51 checks passed
jpedrick pushed a commit to jpedrick/winit that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants