diff options
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index 4f7f1a76..bada4f68 100644 --- a/src/event.rs +++ b/src/event.rs @@ -10,7 +10,7 @@ use std::env; use serde_json as json; use parking_lot::MutexGuard; -use glutin::{self, ModifiersState, Event, ElementState}; +use glutin::{self, ModifiersState, Event, ElementState, MouseButton}; use copypasta::{Clipboard, Load, Store, Buffer as ClipboardBuffer}; use glutin::dpi::PhysicalSize; @@ -245,6 +245,7 @@ pub struct Mouse { pub cell_side: Side, pub lines_scrolled: f32, pub block_url_launcher: bool, + pub last_button: MouseButton, } impl Default for Mouse { @@ -263,6 +264,7 @@ impl Default for Mouse { cell_side: Side::Left, lines_scrolled: 0.0, block_url_launcher: false, + last_button: MouseButton::Other(0), } } } |