From d7a59810484015eda26ab34938512c54f6477d4e Mon Sep 17 00:00:00 2001 From: Tom Crayford Date: Sun, 8 Jan 2017 21:09:02 +0000 Subject: 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 `{:?}`. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.rs') 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> { let mut processor = event::Processor::new( event_loop::Notifier(loop_tx), display.resize_channel(), + &options, &config, options.ref_test, display.size().to_owned(), -- cgit