diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/event.rs | 1 | ||||
-rw-r--r-- | alacritty/src/input.rs | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c43909c7..4439f9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Failure when running on 10-bit color system - The colors being slightly different when using srgb displays on macOS - Vi cursor blinking not reset when navigating in search +- Scrolling and middle-clicking modifying the primary selection ## 0.10.1 diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index d32fd6e5..1db6e450 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -233,7 +233,6 @@ impl<'a, N: Notify + 'a, T: EventListener> input::ActionContext<T> for ActionCon let point = self.mouse.point(&self.size_info(), display_offset); self.update_selection(point, self.mouse.cell_side); } - self.copy_selection(ClipboardType::Selection); *self.dirty = true; } diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index 16649327..0f389851 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -614,8 +614,10 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> { let timer_id = TimerId::new(Topic::SelectionScrolling, self.ctx.window().id()); self.ctx.scheduler_mut().unschedule(timer_id); - // Copy selection on release, to prevent flooding the display server. - self.ctx.copy_selection(ClipboardType::Selection); + if let MouseButton::Left | MouseButton::Right = button { + // Copy selection on release, to prevent flooding the display server. + self.ctx.copy_selection(ClipboardType::Selection); + } } pub fn mouse_wheel_input(&mut self, delta: MouseScrollDelta, phase: TouchPhase) { |