aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-01-06 11:22:47 -0800
committerJoe Wilm <joe@jwilm.com>2017-01-06 11:22:47 -0800
commit8d3f5f4e179b6fe55617dc72fe60fa1bdfd9b014 (patch)
tree8d3cbd833ac37d9ca553ad4bcfedc1a21f30ad0c /src/event.rs
parent99ef2bef9e47f2d44536fd4b531c1b33e2828cac (diff)
downloadalacritty-8d3f5f4e179b6fe55617dc72fe60fa1bdfd9b014.tar.gz
alacritty-8d3f5f4e179b6fe55617dc72fe60fa1bdfd9b014.zip
Fix panic when closing window
Resolves #81.
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs
index 88f28952..66abbaa2 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -129,8 +129,8 @@ impl<N: Notify> Processor<N> {
.expect("write size.json");
}
- // FIXME
- panic!("window closed");
+ // FIXME should do a more graceful shutdown
+ ::std::process::exit(0);
},
glutin::Event::Resized(w, h) => {
resize_tx.send((w, h)).expect("send new size");