1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-03 04:34:21 -05:00

Remove unnecessary macos focus check

Since winit now filters out clicks on unfocused windows on macOS
anyways, we don't need to implement this logic ourselves anymore.
This commit is contained in:
Christian Duerr 2020-02-27 23:42:39 +00:00 committed by GitHub
parent 17b8bbb908
commit 43f89a64c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -548,11 +548,9 @@ impl<N: Notify + OnResize> Processor<N> {
},
ReceivedCharacter(c) => processor.received_char(c),
MouseInput { state, button, .. } => {
if !cfg!(target_os = "macos") || processor.ctx.terminal.is_focused {
processor.ctx.window.set_mouse_visible(true);
processor.mouse_input(state, button);
processor.ctx.terminal.dirty = true;
}
processor.ctx.window.set_mouse_visible(true);
processor.mouse_input(state, button);
processor.ctx.terminal.dirty = true;
},
CursorMoved { position, .. } => {
let (x, y) = position.into();