diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-02-02 11:30:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 11:30:23 +0300 |
commit | 1c878a0476257d328113efcd7088f1aa53f42e56 (patch) | |
tree | b4ba30e6b9549965387330f9eb7111c95795de69 /alacritty/src/renderer/platform.rs | |
parent | 246ec8945d84f658fc88d02a33c3590ef4a92e0f (diff) | |
download | r-alacritty-1c878a0476257d328113efcd7088f1aa53f42e56.tar.gz r-alacritty-1c878a0476257d328113efcd7088f1aa53f42e56.tar.bz2 r-alacritty-1c878a0476257d328113efcd7088f1aa53f42e56.zip |
Update winit to 0.28
Fixes #6644.
Fixes #6615.
Fixes #6558.
Fixes #6515.
Fixes #3187.
Fixes #62.
Diffstat (limited to 'alacritty/src/renderer/platform.rs')
-rw-r--r-- | alacritty/src/renderer/platform.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/renderer/platform.rs b/alacritty/src/renderer/platform.rs index 0a8263c1..77826100 100644 --- a/alacritty/src/renderer/platform.rs +++ b/alacritty/src/renderer/platform.rs @@ -14,7 +14,7 @@ use glutin::surface::{Surface, SurfaceAttributesBuilder, WindowSurface}; use raw_window_handle::{RawDisplayHandle, RawWindowHandle}; use winit::dpi::PhysicalSize; #[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))] -use winit::platform::unix; +use winit::platform::x11; /// Create the GL display. pub fn create_gl_display( @@ -28,7 +28,7 @@ pub fn create_gl_display( let preference = DisplayApiPreference::Wgl(Some(_raw_window_handle.unwrap())); #[cfg(all(feature = "x11", not(any(target_os = "macos", windows))))] - let preference = DisplayApiPreference::GlxThenEgl(Box::new(unix::register_xlib_error_hook)); + let preference = DisplayApiPreference::GlxThenEgl(Box::new(x11::register_xlib_error_hook)); #[cfg(all(not(feature = "x11"), not(any(target_os = "macos", windows))))] let preference = DisplayApiPreference::Egl; |