-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update to winit 0.28 #1738
Update to winit 0.28 #1738
Conversation
Doesn't seem to compile:
Is there something I need to change? I really need to use this because the old version of winit has some conflicting dependencies with another crate I have in my project. In my project, I only get the "could not find |
@hecrj Could I get CI approved on this? This builds on macOS, but clearly there are issues on other platforms. @BBaoVanC The thing to do would be to look at the winit changelog between 0.27 and 0.28 and work out what needs to be updated here to make this compile (there's no trick here - the error shown needs to be fixed). |
Ok, this is currently blocked on updating glutin. That's going to be a bit difficult for me to take on because:
The good news is that glutin 0.30 looks like has support for srgb (see: https://docs.rs/glutin/latest/glutin/surface/struct.SurfaceAttributesBuilder.html#method.with_srgb), so I suspect it may be possible to drop Iced's patch for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should wait until the advanced-text
changes land. iced_glutin
does not exist in that branch.
For documentation, I made a branch on my fork to use as a dependency, and after merging both
(error seems to happen on this PR regardless, and I don't get the other ones anymore, although maybe I changed something) |
4efb2b6
to
09a2a06
Compare
Rebased on top of latest |
cd5594b
to
d6027d7
Compare
0daf856
to
096bcd8
Compare
Ok, this (when combined with iced-rs/winit#9) is now passing CI and the |
3d3b4e5
to
99853ae
Compare
99853ae
to
ece04c1
Compare
... and add `level` field to `window::Settings`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Looks good.
Thanks for taking care of this 🥳
This updates Iced to work with a rebased version of Iced's winit fork to latest winit master (nominally 0.28)
This depends on:
This PR will need to be updated with the new dependency versions once those have been merged.
The only code change in this PR is due winit now having a
Window::set_window_level(WindowLevel)
method rather thenWindow::set_always_on_top(bool)
. WindowLevel as defined as:This PR just maps the boolean from Iced's existing API to the correct value in the new enum. It could alternatively expose this new enum to Iced users if that's considered desirable.