aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/event.rs b/src/event.rs
index f592da5c..cff013e3 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -301,9 +301,11 @@ impl<N: Notify> Processor<N> {
processor.received_char(c);
},
MouseInput { state, button, modifiers, .. } => {
- *hide_cursor = false;
- processor.mouse_input(state, button, modifiers);
- processor.ctx.terminal.dirty = true;
+ if *window_is_focused {
+ *hide_cursor = false;
+ processor.mouse_input(state, button, modifiers);
+ processor.ctx.terminal.dirty = true;
+ }
},
CursorMoved { position: (x, y), modifiers, .. } => {
let x = x as i32;