Skip to content

Commit a42b3c6

Browse files
authored
Merge pull request #658 from hecrj/update-winit-and-glutin
Update `winit` and `glutin`
2 parents d16b9cf + 742086e commit a42b3c6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

glutin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["gui"]
1414
debug = ["iced_winit/debug"]
1515

1616
[dependencies]
17-
glutin = "0.25"
17+
glutin = "0.26"
1818

1919
[dependencies.iced_native]
2020
version = "0.3"

winit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["gui"]
1414
debug = ["iced_native/debug"]
1515

1616
[dependencies]
17-
winit = "0.23"
17+
winit = "0.24"
1818
window_clipboard = "0.1"
1919
log = "0.4"
2020
thiserror = "1.0"

winit/src/conversion.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ pub fn mouse_button(mouse_button: winit::event::MouseButton) -> mouse::Button {
170170
winit::event::MouseButton::Left => mouse::Button::Left,
171171
winit::event::MouseButton::Right => mouse::Button::Right,
172172
winit::event::MouseButton::Middle => mouse::Button::Middle,
173-
winit::event::MouseButton::Other(other) => mouse::Button::Other(other),
173+
winit::event::MouseButton::Other(other) => {
174+
mouse::Button::Other(other as u8)
175+
}
174176
}
175177
}
176178

0 commit comments

Comments
 (0)