middle mouse button not passed to tmux

Bug #1647507 reported by John on 2016-12-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

terminator 0.98

Terminator should not paste the selection buffer when the child terminal application has enabled mouse tracking.

For example, try the following in urxvt, xterm and terminator and compare the results:

echo -e "\e[?1000h"

This enables mouse tracking.

Now you will find that clicking left or middle mouse will produce characters in the terminal, which encodes mouse events which a terminal application like tmux or vim could consume to do clever things.

Unfortunately in terminator, middle mouse button also pastes the copy buffer as well as the mouse codes, which would probably break a terminal application (it certainly messes things up in tmux).

See the following stack overflow answer for more information about mouse tracking:


FYI, the latest tmux is starting to provide more sophisticated features for handling mouse events, and these are just not going to work in terminator if they use middle mouse.

Related branches

John (lqueryvg) on 2016-12-05
description: updated
Stephen Boddy (stephen-j-boddy) wrote :

Committed revision 1665.

Note this is the *GTK3* branch.It is pretty obvious what the change is for backporting.

Changed in terminator:
status: New → Fix Committed
Changed in terminator:
status: Fix Committed → Fix Released
John (lqueryvg) on 2017-02-26
Changed in terminator:
status: Fix Released → Fix Committed
Stephen Boddy (stephen-j-boddy) wrote :

Hi John, care to explain why you flipped this back to Committed? I released 1.91 today, which includes the fix for this. Or are you saying it still doesn't work? If so, then adding a bit of info might be helpful...

John (lqueryvg) wrote :

Hi Stephen, I didn't realise I'd done that. How embarrassing.
I'm not very familiar with launchpad and was actually only intending to have a look at the code changes in revision 1665. I must have made an accidental mouse clock somewhere along the way. I'm very sorry.
Hopefully I've just put it back to "Fix Released" state ?

Changed in terminator:
status: Fix Committed → Fix Released
John (lqueryvg) wrote :

I meant mouse *click*

Stephen Boddy (stephen-j-boddy) wrote :


Yup you set it right, and if you haven't already found it:


and use the expander to display the diff.

John (lqueryvg) wrote :

Cool - thanks.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions