summarylogtreecommitdiffstats
path: root/14393-gestures-only.master.patch
diff options
context:
space:
mode:
Diffstat (limited to '14393-gestures-only.master.patch')
-rw-r--r--14393-gestures-only.master.patch112
1 files changed, 0 insertions, 112 deletions
diff --git a/14393-gestures-only.master.patch b/14393-gestures-only.master.patch
deleted file mode 100644
index 7b3920e604b0..000000000000
--- a/14393-gestures-only.master.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-diff --git a/include/synaptics-properties.h b/include/synaptics-properties.h
-index 32ab2e1..91d8160 100644
---- a/include/synaptics-properties.h
-+++ b/include/synaptics-properties.h
-@@ -158,4 +158,7 @@
- /* 32 Bit Integer, 2 values, horizontal hysteresis, vertical hysteresis */
- #define SYNAPTICS_PROP_NOISE_CANCELLATION "Synaptics Noise Cancellation"
-
-+/* 8 bit (BOOL) */
-+#define SYNAPTICS_PROP_GESTURES_ONLY "Synaptics Gestures Only"
-+
- #endif /* _SYNAPTICS_PROPERTIES_H_ */
-diff --git a/man/synaptics.man b/man/synaptics.man
-index 97f0114..a1331c0 100644
---- a/man/synaptics.man
-+++ b/man/synaptics.man
-@@ -502,6 +502,15 @@ Property: "Synaptics Secondary Soft Button Areas". This property is only
- initialized if the option is set in the
- __xconfigfile__(__filemansuffix__).
- .
-+.TP
-+.BI "Option \*qGesturesOnly\*q \*q" boolean \*q
-+Disable pointer motion events.
-+
-+The option is disabled by default. If set, the driver will report gesture and
-+button events but no pointer events.
-+Property: "Synaptics Gestures Only"
-+.
-+
-
- .SH CONFIGURATION DETAILS
- .SS Area handling
-@@ -885,6 +894,10 @@ disables the button area.
- 32 bit, 8 values, RBL, RBR, RBT, RBB, MBL, MBR, MBT, MBB.
-
- .TP 7
-+.BI "Synaptics Gestures Only"
-+8 bit (BOOL).
-+
-+.TP 7
- .BI "Synaptics Capabilities"
- This read-only property expresses the physical capability of the touchpad,
- most notably whether the touchpad hardware supports multi-finger tapping and
-diff --git a/src/properties.c b/src/properties.c
-index 4c75797..3035802 100644
---- a/src/properties.c
-+++ b/src/properties.c
-@@ -95,6 +95,7 @@ Atom prop_secondary_softbutton_areas = 0;
- Atom prop_noise_cancellation = 0;
- Atom prop_product_id = 0;
- Atom prop_device_node = 0;
-+Atom prop_gestures_only = 0;
-
- static Atom
- InitTypedAtom(DeviceIntPtr dev, char *name, Atom type, int format, int nvalues,
-@@ -378,6 +379,10 @@ InitDeviceProperties(InputInfoPtr pInfo)
- SYNAPTICS_PROP_NOISE_CANCELLATION, 32, 2,
- values);
-
-+ prop_gestures_only =
-+ InitAtom(pInfo->dev, SYNAPTICS_PROP_GESTURES_ONLY, 8, 1,
-+ &para->gestures_only);
-+
- /* only init product_id property if we actually know them */
- if (priv->id_vendor || priv->id_product) {
- values[0] = priv->id_vendor;
-@@ -811,6 +816,12 @@ SetProperty(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop,
- para->hyst_x = hyst[0];
- para->hyst_y = hyst[1];
- }
-+ else if (property == prop_gestures_only) {
-+ if (prop->size != 1 || prop->format != 8 || prop->type != XA_INTEGER)
-+ return BadMatch;
-+
-+ para->gestures_only = *(BOOL *) prop->data;
-+ }
- else if (property == prop_product_id || property == prop_device_node)
- return BadValue; /* read-only */
- else { /* unknown property */
-diff --git a/src/synaptics.c b/src/synaptics.c
-index aeb1c57..43b164a 100644
---- a/src/synaptics.c
-+++ b/src/synaptics.c
-@@ -671,6 +671,7 @@ set_default_parameters(InputInfoPtr pInfo)
- pars->tap_move = xf86SetIntOption(opts, "MaxTapMove", tapMove);
- pars->tap_time_2 = xf86SetIntOption(opts, "MaxDoubleTapTime", 180);
- pars->click_time = xf86SetIntOption(opts, "ClickTime", 100);
-+ pars->gestures_only = xf86SetBoolOption(opts, "GesturesOnly", pars->gestures_only);
- pars->clickpad = xf86SetBoolOption(opts, "ClickPad", pars->clickpad); /* Probed */
- pars->clickpad_ignore_motion_time = 100; /* ms */
- /* middle mouse button emulation on a clickpad? nah, you're joking */
-@@ -3207,7 +3208,7 @@ HandleState(InputInfoPtr pInfo, struct SynapticsHwState *hw, CARD32 now,
- }
-
- /* Post events */
-- if (finger >= FS_TOUCHED && (dx || dy) && !ignore_motion)
-+ if (finger >= FS_TOUCHED && (dx || dy) && !ignore_motion && !para->gestures_only)
- xf86PostMotionEvent(pInfo->dev, 0, 0, 2, dx, dy);
-
- if (priv->mid_emu_state == MBE_LEFT_CLICK) {
-diff --git a/src/synapticsstr.h b/src/synapticsstr.h
-index b8a3492..3e9fa3a 100644
---- a/src/synapticsstr.h
-+++ b/src/synapticsstr.h
-@@ -225,6 +225,7 @@ typedef struct _SynapticsParameters {
- int area_left_edge, area_right_edge, area_top_edge, area_bottom_edge; /* area coordinates absolute */
- int softbutton_areas[4][4]; /* soft button area coordinates, 0 => right, 1 => middle , 2 => secondary right, 3 => secondary middle button */
- int hyst_x, hyst_y; /* x and y width of hysteresis box */
-+ Bool gestures_only; /* do not post mouse input events */
- } SynapticsParameters;
-
- struct _SynapticsPrivateRec {