Don't expect a palm based on pressure (#22806)

If the first touch on the touchpad is above palm_min_z, the palm detection
unsets the finger status ("probably palm"). Don't do that, for low values of
palm_min_z this disables the finger during normal use of the touchpad.

X.Org Bug 22806 <http://bugs.freedesktop.org/show_bug.cgi?id=22806>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2009-10-08 11:56:57 +10:00
parent f34ee8e8ac
commit 5aaeea79ee

View File

@@ -1396,8 +1396,6 @@ SynapticsDetectFinger(SynapticsPrivate *priv, struct SynapticsHwState *hw)
finger = FS_UNTOUCHED;
else if (hw->z < priv->prev_z - 5) /* z not stable, may be a palm */
finger = FS_UNTOUCHED;
else if (hw->z > para->palm_min_z) /* z too large -> probably palm */
finger = FS_UNTOUCHED;
else if (hw->fingerWidth > para->palm_min_width) /* finger width too large -> probably palm */
finger = FS_UNTOUCHED;
}