diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2022-11-03 19:37:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 19:37:54 +0300 |
commit | 0e418bc2f761617455cc58aaabc375055dfe4284 (patch) | |
tree | fc15d2260404914e21297d392f7f9c32a5f2bffc /alacritty/src/config/bindings.rs | |
parent | 578e08486dfcdee0b2cd0e7a66752ff50edc46b8 (diff) | |
download | r-alacritty-0e418bc2f761617455cc58aaabc375055dfe4284.tar.gz r-alacritty-0e418bc2f761617455cc58aaabc375055dfe4284.tar.bz2 r-alacritty-0e418bc2f761617455cc58aaabc375055dfe4284.zip |
Update glutin to 0.30.0
The glutin 0.30.0 update decouples glutin from winit which
provides us with basis for a multithreaded renderer. This
also improves robustness of our configuration picking,
context creation, and surface handling.
As an example we're now able to start on systems without a vsync,
we don't try to build lots of contexts to check if some config works,
and so on.
That also brings us possibility to handle context losses, but that's
a future work.
Fixes #1268.
Diffstat (limited to 'alacritty/src/config/bindings.rs')
-rw-r--r-- | alacritty/src/config/bindings.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 3aae25ed..7b654b66 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -3,11 +3,11 @@ use std::fmt::{self, Debug, Display}; use bitflags::bitflags; -use glutin::event::VirtualKeyCode::*; -use glutin::event::{ModifiersState, MouseButton, VirtualKeyCode}; use serde::de::{self, Error as SerdeError, MapAccess, Unexpected, Visitor}; use serde::{Deserialize, Deserializer}; use serde_yaml::Value as SerdeValue; +use winit::event::VirtualKeyCode::*; +use winit::event::{ModifiersState, MouseButton, VirtualKeyCode}; use alacritty_config_derive::{ConfigDeserialize, SerdeReplace}; @@ -1187,7 +1187,7 @@ impl<'a> Deserialize<'a> for KeyBinding { } } -/// Newtype for implementing deserialize on glutin Mods. +/// Newtype for implementing deserialize on winit Mods. /// /// Our deserialize impl wouldn't be covered by a derive(Deserialize); see the /// impl below. @@ -1242,7 +1242,7 @@ impl<'a> de::Deserialize<'a> for ModsWrapper { mod tests { use super::*; - use glutin::event::ModifiersState; + use winit::event::ModifiersState; type MockBinding = Binding<usize>; |