mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
glutin: Simplify set_nested_event_loop_listener.
This commit is contained in:
parent
ed87fcf6cf
commit
f10e3765b1
1 changed files with 3 additions and 6 deletions
|
@ -303,12 +303,9 @@ impl Window {
|
|||
|
||||
fn nested_window_resize(width: u32, height: u32) {
|
||||
unsafe {
|
||||
match G_NESTED_EVENT_LOOP_LISTENER {
|
||||
None => {}
|
||||
Some(listener) => {
|
||||
(*listener).handle_event_from_nested_event_loop(
|
||||
WindowEvent::Resize(TypedSize2D::new(width, height)));
|
||||
}
|
||||
if let Some(listener) = G_NESTED_EVENT_LOOP_LISTENER {
|
||||
(*listener).handle_event_from_nested_event_loop(
|
||||
WindowEvent::Resize(TypedSize2D::new(width, height)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue