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

Improve the UX of the Window interface. #1368

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

iddm
Copy link
Contributor

@iddm iddm commented Jan 26, 2024

Makes it clonable and removes the "unsafe" from the Window::from_ref method.

Addresses #1367

Makes it clonable and removes the "unsafe" from the `Window::from_ref`
method.

Addresses Rust-SDL2#1367
@Cobrand
Copy link
Member

Cobrand commented Jan 30, 2024

Thank you! I think this was made unsafe back in the day because the WindowContext could be obtained elsewhere in a safe way. It should be fine now though.

@Cobrand Cobrand merged commit 670bacf into Rust-SDL2:master Jan 30, 2024
16 of 17 checks passed
@iddm
Copy link
Contributor Author

iddm commented Jan 30, 2024

Thank you very much! Have a great day!

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.

2 participants