aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTom Crayford <tcrayford@googlemail.com>2017-01-08 21:09:02 +0000
committerTom Crayford <tcrayford@googlemail.com>2017-01-08 21:09:02 +0000
commitd7a59810484015eda26ab34938512c54f6477d4e (patch)
tree98b62c65a72f3a339ed4175f9bbfbd986dbe41eb /src/main.rs
parent9e713189cc6dc83f97e87fa18b66b39d2c7222cc (diff)
downloadalacritty-d7a59810484015eda26ab34938512c54f6477d4e.tar.gz
alacritty-d7a59810484015eda26ab34938512c54f6477d4e.zip
print glutin events if --print-events is passed
When debugging many issues, it's often very helpful to have the raw glutin events printed out to stderr as they come in. This does that. Note that since `glutin::Event` doesn't implement `Display`, we just use rust's debugging output for now via `{:?}`.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index fb305e7c..cda28d13 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -118,6 +118,7 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
let mut processor = event::Processor::new(
event_loop::Notifier(loop_tx),
display.resize_channel(),
+ &options,
&config,
options.ref_test,
display.size().to_owned(),