Skip to content

Commit

Permalink
Update winit to latest commit used by upstream iced
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Oct 19, 2023
1 parent 1e45d23 commit c716df2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

Many thanks to...
- @jackpot51
- @wash2

## [0.10.0] - 2023-07-28
Expand Down
2 changes: 1 addition & 1 deletion winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ raw-window-handle = "0.5"

[dependencies.winit]
git = "https://github.com/pop-os/winit.git"
branch = "iced"
branch = "master"

[dependencies.iced_runtime]
version = "0.1"
Expand Down
6 changes: 4 additions & 2 deletions winit/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Window {
{
// `with_name` is available on both `WindowBuilderExtWayland` and `WindowBuilderExtX11` and they do
// exactly the same thing. We arbitrarily choose `WindowBuilderExtWayland` here.
use ::winit::platform::unix::WindowBuilderExtUnix;
use ::winit::platform::wayland::WindowBuilderExtWayland;

if let Some(id) = _id {
window_builder = window_builder.with_name(id.clone(), id);
Expand Down Expand Up @@ -202,7 +202,9 @@ impl Window {

#[cfg(target_os = "linux")]
{
use winit::platform::unix::WindowBuilderExtUnix;
// `with_name` is available on both `WindowBuilderExtWayland` and `WindowBuilderExtX11` and they do
// exactly the same thing. We arbitrarily choose `WindowBuilderExtWayland` here.
use winit::platform::wayland::WindowBuilderExtWayland;

window_builder = window_builder.with_name(
&self.platform_specific.application_id,
Expand Down

0 comments on commit c716df2

Please sign in to comment.