mirror of
https://github.com/wez/wezterm.git
synced 2024-09-20 19:27:22 +03:00
wayland: keymap File no longer needs to be mut
This commit is contained in:
parent
9db9db29b7
commit
8f0ab02b09
@ -165,7 +165,7 @@ impl WaylandConnection {
|
||||
*self.key_repeat_delay.borrow_mut() = *delay;
|
||||
}
|
||||
WlKeyboardEvent::Keymap { format, fd, size } => {
|
||||
let mut file = unsafe { std::fs::File::from_raw_fd(*fd) };
|
||||
let file = unsafe { std::fs::File::from_raw_fd(*fd) };
|
||||
match format {
|
||||
KeymapFormat::XkbV1 => {
|
||||
let mut data = vec![0u8; *size as usize];
|
||||
|
Loading…
Reference in New Issue
Block a user