Fix build on linux

This commit is contained in:
Nico Burns 2023-02-28 12:11:04 +00:00
parent a5fbfe7ea5
commit 42671e2855

View file

@ -161,7 +161,9 @@ impl Window {
target_os = "openbsd" 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 { if let Some(id) = _id {
window_builder = window_builder.with_name(id.clone(), id); window_builder = window_builder.with_name(id.clone(), id);