From 369c8a980e7c70ecfb38bfd95eb5f03025dcab57 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sun, 19 Mar 2017 21:56:10 +0100 Subject: [PATCH] Updated example --- examples/simple.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/simple.rs b/examples/simple.rs index c37f0fa..b53ff49 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -3,6 +3,7 @@ extern crate smithay; use smithay::shm::ShmGlobal; use smithay::backend::glutin; +use smithay::backend::input::InputBackend; use wayland_server::protocol::wl_shm; fn main() { @@ -30,7 +31,7 @@ fn main() { //TODO render stuff //TODO put input handling on the event loop - input.process_new_events(); + input.dispatch_new_events().unwrap(); - event_loop.run(); + event_loop.run().unwrap(); }