Repository: alacritty/alacritty (language: rust)

Issue:
with tmux on wheel button inserts both selection and clipboard
Normally: only pastes selection
Currently: pastes both selection and clipboard from elsewhere

 - other terminal + tmux: works normally
 - alacritty without tmux: works normally
 - alacritty + tmux: current state


Discussion / hints:
could you give more information, like at least `alacritty -v` output and share your tmux and alacritty configuration.
@kchibisov configs are there https://github.com/Miezhiko/home
alacritty is on commit `f94f4fd4bec024a7a189006b77aa8306b3ba3f88`
features: `x11 wayland`
I experience this under X session on Gnome, didn't tried on wayland

Fix patch:
diff --git a/alacritty/src/input/mod.rs b/alacritty/src/input/mod.rs
index e811e4c42ee..a465fd377f0 100644
--- a/alacritty/src/input/mod.rs
+++ b/alacritty/src/input/mod.rs
@@ -1000,7 +1000,8 @@ impl<T: EventListener, A: ActionContext<T>> Processor<T, A> {
         let mut check_fallback = mouse_mode && mods.contains(ModifiersState::SHIFT);
 
         for binding in &mouse_bindings {
-            if binding.is_triggered_by(mode, mods, &button) {
+            // Don't trigger normal bindings in mouse mode unless Shift is pressed.
+            if binding.is_triggered_by(mode, mods, &button) && (check_fallback || !mouse_mode) {
                 binding.action.execute(&mut self.ctx);
                 check_fallback = false;
             }


Test patch: