Created
August 2, 2015 01:10
-
-
Save ueokande/bf4d522ff5c6d7137fd5 to your computer and use it in GitHub Desktop.
Add TouchpadOff=3 to disable pointer motion only; http://patchwork.freedesktop.org/patch/12962/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/man/synaptics.man b/man/synaptics.man | |
index 03f18ac..5f9702a 100644 | |
--- a/man/synaptics.man | |
+++ b/man/synaptics.man | |
@@ -228,6 +228,7 @@ l l. | |
0 Touchpad is enabled | |
1 Touchpad is switched off | |
2 Only tapping and scrolling is switched off | |
+3 Only pointer motion is switched off | |
.TE | |
Property: "Synaptics Off" | |
.TP | |
diff --git a/src/properties.c b/src/properties.c | |
index dd88fc7..cbaf480 100644 | |
--- a/src/properties.c | |
+++ b/src/properties.c | |
@@ -526,7 +526,7 @@ SetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop, | |
off = *(CARD8 *) prop->data; | |
- if (off > 2) | |
+ if (off > 3) | |
return BadValue; | |
para->touchpad_off = off; | |
diff --git a/src/synaptics.c b/src/synaptics.c | |
index 29e551a..fff4ba1 100644 | |
--- a/src/synaptics.c | |
+++ b/src/synaptics.c | |
@@ -2866,7 +2866,7 @@ HandleState(InputInfoPtr pInfo, struct SynapticsHwState *hw, CARD32 now, | |
} | |
/* Post events */ | |
- if (finger >= FS_TOUCHED && (dx || dy)) | |
+ if (finger >= FS_TOUCHED && (dx || dy) && para->touchpad_off != 3) | |
xf86PostMotionEvent(pInfo->dev, 0, 0, 2, dx, dy); | |
if (priv->mid_emu_state == MBE_LEFT_CLICK) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment