From 42671e2855a7e54c1785f75833da062e07362b87 Mon Sep 17 00:00:00 2001 From: Nico Burns Date: Tue, 28 Feb 2023 12:11:04 +0000 Subject: Fix build on linux --- winit/src/settings.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winit/src') 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); -- cgit