Page 1 of 1

Disabling middle mouse paste linux?

Posted: Sat Apr 26, 2008 3:55 am
by aliencam
I just did a fresh install of ubuntu hardy, and I cannot figure out how I had the middle mouse button working for scroll, but not acting as a paste. This is annoying because if I am scrolling up a document, it pastes whatever I last selected into wherever I begin scrolling from, messing everything up, and often without me able to notice.

I don't believe I had this problem in Gutsy, but I remember having it at one point. I cannot find anywhere that says how to get the scroll working but to get rid of the paste-behavior.

here is my mouse section in xorg.conf so far:

Code: Select all

Section "InputDevice"
	Identifier "Configured Mouse"
	Driver "mouse"
	Option "Protocol" "ExplorerPS/2"
	Option "Device" "/dev/input/mice"
	Option "EmulateWheel" "on"
	Option "EmulateWheelTimeout" "200"
	Option "EmulateWheelButton" "2"
	Option "YAxisMapping" "4 5"
	Option "XAxisMapping" "6 7"
EndSection

Posted: Wed Apr 30, 2008 12:43 am
by aliencam
The issue was actually only occurring in firefox.

I fixed it by changing the about:config value for "middlemouse.paste" to false.

Posted: Wed Apr 30, 2008 1:26 am
by cpascu01
I got my middle mouse button to scroll by editing the input device in my xorg file. I made it look like this...

Code: Select all

Section "InputDevice"
	Identifier	"Trackpoint"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
	Option		"EmulateWheel"          "true"
	Option		"EmulateWheelButton"    "2"
EndSection
Once I did this, I didn't need to tinker with about:config with Firefox. This lets me scroll with the middle button, but it also allows me to paste stuff in the Terminal.

Posted: Wed Apr 30, 2008 2:44 pm
by aliencam
I actually don't want it to paste at all, I just use ctrl-shift-v for paste in terminal, but it was really an issue for me when I was editing config files in gedit.