4

I am running Ubuntu 15.04 on a Dell XPS 13 from 2013. Since 13.04 I sometimes get accidental middle clicks/middle click emulation. I can tell this is happening because text in my clipboard pastes itself (default behaviour on Ubuntu) at random times.

Can anyone tell me why this is happening and how I can disable it?

  • I'm also seeing this every once in a while on a Samsung NP300E5Z laptop. Rather than disabling, I'd be curious what's the exact action that triggers this. I'd like to use this feature on purpose, but I couldn't figure out how to trigger this. – egmont May 8 '15 at 9:32
10

Run the following command:

xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9"

To persist this behavior, edit ~/.Xmodmap and add

pointer = 1 25 3 4 5 6 7 8 9
  • 4
    This works like a charm! Mind to explain what it does? – h3nr1x Jan 12 '18 at 13:15
  • 1
    @h3nr1x I found some related info here – gregn3 Apr 20 '18 at 18:55
  • Also see xmodmap and this askubuntu.com/questions/749660/… – Kerem Dec 5 '19 at 11:56
  • this also disabled mouse middle click (not just touchpad) for me as well, not sure that's what I wanted. – Kerem Dec 9 '19 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.