mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Ignore mouse input if window is unfocused
This commit is contained in:
parent
128c25ee8b
commit
caf4580daa
1 changed files with 5 additions and 3 deletions
|
@ -301,9 +301,11 @@ impl<N: Notify> Processor<N> {
|
|||
processor.received_char(c);
|
||||
},
|
||||
MouseInput { state, button, modifiers, .. } => {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue