Package: tmux
Version: 3.5a-3
Severity: important
Tags: patch
Control: fixed -1 3.7-1

Symptoms: when logged into a Debian system with tmux, if I scroll inside a pane 
while output is being written in another pane, the scroll events go to the host 
terminal, not to the tmux pane. This breaks the display by showing lines from 
the previous frame.

Steps to reproduce, in a UTF-8 locale:

  1.
SSH into a Debian stable system and start tmux 3.5a.
  2.
Run: tmux set -g mouse on
  3.
Split the window into two panes with Ctrl+B followed by %.
  4.
In one pane, run: while :; do printf '\r● working'; sleep 0.1; done
  5.
Focus the other pane and scroll with a touchpad or mouse wheel.

What happens: some of those scrolling events scroll the host terminal, some 
scroll inside the tmux pane.

What should happen: scrolling events only affect the tmux pane.

I tested this in Debian Stable's tmux build and in a build of the same with the 
attached fix. Scrolling works correctly in the fixed build.

Claude Code found the bug and wrote the fix that I read and tested.

The fix is attached.

Could you please fix this in Debian 13? I use stable and this makes my work 
much easier.

Attachment: tmux-mouse-fix.patch
Description: tmux-mouse-fix.patch

Reply via email to