My workstation with Ubuntu 12.04 is a MacBook Pro which supports a Multitouch Trackpad.
Unfortunately, I'm constantly accidentally triggering the three finger touch gesture to resize a window:
How can I disable this gesture?
The trackpad is configured by default to ignore three-finger taps (and three-finger clicks), and can be set it to regain control of it, thus overriding the window move association to three-finger taps. This is how it can be done:
Look for the relevant property - open a terminal and type in:
Locate the line containing the trackpad details (e.g.
↳ CyPS/2 Cypress Trackpad id=12 [slave pointer (2)]
), and note its
id value. Now type in:
xinput list-props [id]
[id] is replaced by the
id value (which is
12 in the given example). Now locate the
Synaptics Tap Action property (e.g.
Synaptics Tap Action (282): 2, 3, 0, 0, 1, 3, 0) and note its number, it will be enclosed inside round brackets (here it's
282). Also note the property values, we will use them later.
Assuming you want this behavior at startup, create a shell script and add it to the startup programs. Let's call this script trackpad.sh. Our goal is to replace the last value with a new one, e.g. for middle click. Edit the script to contain the following:
#!/bin/bash xinput set-prop [xinput-prop-id] [prop-number] [TR] [BR] [TL] [BL] [F1] [F2] 2
Our concrete example command will than look like this (just for the sake of demonstration):
xinput set-prop 12 282 2, 3, 0, 0, 1, 3, 2
Notice that we replaced only the last value from
2, to signify middle click. You can choose any between
1 (left click),
2 (middle click), or
3 (right click).
Grant the script with execution permissions, and run it. You're good to go!