diff options
author | Christian Duerr <contact@christianduerr.com> | 2017-12-29 18:48:37 +0100 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-01-03 11:15:57 -0800 |
commit | 04bfda943a2411e4c1585af3ff68d82ed4589929 (patch) | |
tree | 4e10e32bd85f0c9cd2a9c6efd4c6a68861edbd4e /src/event.rs | |
parent | b83a26ffe097ba9bf80b2801ba27737f6ccd90be (diff) | |
download | alacritty-04bfda943a2411e4c1585af3ff68d82ed4589929.tar.gz alacritty-04bfda943a2411e4c1585af3ff68d82ed4589929.zip |
Update mouse modifiers to only pass shift
The only mouse modifier required right now is the shift key, to prevent
passing around unnecessary state, only the shift state is passed to the
mouse processors now.
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.rs b/src/event.rs index 3dce4d66..c43ba2b3 100644 --- a/src/event.rs +++ b/src/event.rs @@ -300,7 +300,7 @@ impl<N: Notify> Processor<N> { }, MouseInput { state, button, modifiers, .. } => { *hide_cursor = false; - processor.mouse_input(state, button, modifiers); + processor.mouse_input(state, button, modifiers.shift); processor.ctx.terminal.dirty = true; }, CursorMoved { position: (x, y), modifiers, .. } => { @@ -310,7 +310,7 @@ impl<N: Notify> Processor<N> { let y = limit(y, 0, processor.ctx.size_info.height as i32); *hide_cursor = false; - processor.mouse_moved(x as u32, y as u32, modifiers); + processor.mouse_moved(x as u32, y as u32, modifiers.shift); if !processor.ctx.selection.is_none() { processor.ctx.terminal.dirty = true; |