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

Support is_x11 and is_wayland on EventLoop #3672

Merged
merged 5 commits into from
May 26, 2024

Conversation

dhardy
Copy link
Contributor

@dhardy dhardy commented May 2, 2024

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Winit v0.30 does not allow testing is_wayland on an EventLoop (but only on an ActiveEventLoop), though this appears to be possible. This is an issue for me.

The trait names ActiveEventLoopExtWayland and ActiveEventLoopExtX11 are now inaccurate (may cause issues with future additional functionality?), but this is the most straightforward solution.

Fixes #3670

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

EventLoop is not Active it should have its own extensions.

@dhardy
Copy link
Contributor Author

dhardy commented May 4, 2024

New traits then (a copy of these other than the name)?

@kchibisov
Copy link
Member

Yes. Which is unfortunate, but it will prevent errors if someone tries to add API for the EventLoop which requires EventLoop to be actually running.

src/changelog/unreleased.md Outdated Show resolved Hide resolved
@kchibisov kchibisov merged commit 5ea20fc into rust-windowing:master May 26, 2024
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Reintroduce ability to query use of X11 or Wayland as backend on raw EventLoop
3 participants