mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -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:
parent
17b8bbb908
commit
43f89a64c2
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue