This question already has an answer here:
This question is similar but not identical to tmux -- any way to enable scrolling, but not selection?
I'm using tmux within gnome-terminal. When I use
setw -g mode-mouse on in tmux to enable scrolling through the history buffer, tmux doesn't respect the copy/paste functionality in X, i.e. selecting text does not place the text in the primary buffer, and I can't paste using the middle mouse button
When I press the middle mouse button, I see coordinates in the upper right corner of the screen -- it looks like it's trying to register a middle mouse click as use of the scroll wheel.
Are there tmux settings that I can use to fix this? Are the scroll wheel and the middle mouse buttons seen as independent in tmux? Can I map middle mouse button to OS paste? Can tmux copy/paste request from/feed to OS paste?