mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Quit when the glutin window closes
This commit is contained in:
parent
524b02dbf7
commit
54e8374b6c
1 changed files with 3 additions and 0 deletions
|
@ -228,6 +228,9 @@ impl Window {
|
|||
Event::Refresh => {
|
||||
self.event_queue.borrow_mut().push(WindowEvent::Refresh);
|
||||
}
|
||||
Event::Closed => {
|
||||
return true
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue