aboutsummaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs
index 5ec156c3..b220ae2c 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -86,7 +86,12 @@ impl<N: input::Notify> Processor<N> {
let processor = &mut self.input_processor;
let notifier = &mut self.notifier;
- processor.mouse_input(state, button, notifier, *terminal.mode());
+ processor.mouse_input(state, button, notifier, &terminal);
+ },
+ glutin::Event::MouseMoved(x, y) => {
+ if x > 0 && y > 0 {
+ self.input_processor.mouse_moved(x as u32, y as u32);
+ }
},
glutin::Event::Focused(true) => {
let mut terminal = self.terminal.lock();