diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-23 20:25:37 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | 90e0a759e8e55952ada459914f9958d50eab04fe (patch) | |
tree | 58fde9affe7e8516481d5983afd9186f620e6ffa /src/event.rs | |
parent | b6c372ab4800b8dbc9e3efb042e369c9980c607a (diff) | |
download | alacritty-90e0a759e8e55952ada459914f9958d50eab04fe.tar.gz alacritty-90e0a759e8e55952ada459914f9958d50eab04fe.zip |
Support normal mouse tracking mode
This allows the user for eg clicking columnts in htop to sort.
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 7 |
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(); |