summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorvantu5z2016-04-03 17:34:27 +0900
committervantu5z2016-04-03 17:34:27 +0900
commit241caa561dae8654de25765dea0b7c74291cd998 (patch)
tree9be7cd862bb45ad5f5b45166ca03436ff0c964f6
parent8cd59a61dfaed3e28ac5275ecd085e8a1db9fc31 (diff)
downloadaur-241caa561dae8654de25765dea0b7c74291cd998.tar.gz
fix patch
-rw-r--r--led_support.patch16
1 files changed, 9 insertions, 7 deletions
diff --git a/led_support.patch b/led_support.patch
index 19b12903315..32185712745 100644
--- a/led_support.patch
+++ b/led_support.patch
@@ -200,10 +200,11 @@ diff -ur xf86-input-synaptics-1.7.6/src/synaptics.c xf86-input-synaptics-1.7.6_n
const static struct {
const char *name;
-@@ -745,6 +746,8 @@
- xf86SetIntOption(opts, "HorizResolution", horizResolution);
- pars->resolution_vert =
- xf86SetIntOption(opts, "VertResolution", vertResolution);
+@@ -771,7 +771,8 @@
+ the touchpad diagonal */
+ pars->maxDeltaMM = diag * 0.25;
+ }
+-
+ pars->led_double_tap =
+ xf86SetBoolOption(opts, "LEDDoubleTap", TRUE);
@@ -387,17 +388,18 @@ diff -ur xf86-input-synaptics-1.7.6/src/synaptics.c xf86-input-synaptics-1.7.6_n
diff -ur xf86-input-synaptics-1.7.6/src/synapticsstr.h xf86-input-synaptics-1.7.6_new/src/synapticsstr.h
--- xf86-input-synaptics-1.7.6/src/synapticsstr.h 2014-05-01 08:18:12.000000000 +0400
+++ xf86-input-synaptics-1.7.6_new/src/synapticsstr.h 2015-10-29 11:47:04.671303525 +0300
-@@ -226,6 +226,9 @@
+@@ -226,7 +226,9 @@
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 has_led; /* has an embedded LED */
+ Bool led_status; /* Current status of LED (1=on) */
+ Bool led_double_tap; /* double-tap period in ms for touchpad LED control */
+ int maxDeltaMM; /* maximum delta movement (vector length) in mm */
} SynapticsParameters;
- struct _SynapticsPrivateRec {
-@@ -308,6 +311,11 @@
+@@ -310,6 +312,11 @@
Bool has_width; /* device reports finger width */
Bool has_scrollbuttons; /* device has physical scrollbuttons */
Bool has_semi_mt; /* device is only semi-multitouch capable */