diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-02-27 23:42:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 23:42:39 +0000 |
commit | 43f89a64c28a2896b93ebb2aba10a3e8e23b4ba1 (patch) | |
tree | 7cab1d2d3dbf1f0535bb6d8fa0630048af41708e | |
parent | 17b8bbb908a73b7466648c26f2ab77d6cc7176a6 (diff) | |
download | alacritty-43f89a64c28a2896b93ebb2aba10a3e8e23b4ba1.tar.gz alacritty-43f89a64c28a2896b93ebb2aba10a3e8e23b4ba1.zip |
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.
-rw-r--r-- | alacritty/src/event.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index cd4f82a1..587a5078 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -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(); |