diff options
author | 2023-02-28 12:11:04 +0000 | |
---|---|---|
committer | 2023-05-11 17:00:18 +0100 | |
commit | 42671e2855a7e54c1785f75833da062e07362b87 (patch) | |
tree | bf58b2cff42911bde69c7a8a8f4a9a6482515e60 /winit | |
parent | a5fbfe7ea5e73218af1befe02eb364afad2d6c55 (diff) | |
download | iced-42671e2855a7e54c1785f75833da062e07362b87.tar.gz iced-42671e2855a7e54c1785f75833da062e07362b87.tar.bz2 iced-42671e2855a7e54c1785f75833da062e07362b87.zip |
Fix build on linux
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/settings.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 413ae64a..a807cdba 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -161,7 +161,9 @@ impl Window { target_os = "openbsd" ))] { - 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::x11::WindowBuilderExtWayland; if let Some(id) = _id { window_builder = window_builder.with_name(id.clone(), id); |