1
0
Fork 0
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:
Felippe da Motta Raposo 2018-06-23 03:13:19 -07:00 committed by Christian Duerr
parent 128c25ee8b
commit caf4580daa

View file

@ -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;