]> git.pld-linux.org Git - packages/xorg-driver-input-synaptics.git/blob - restore-shm1.patch
- updated to 1.9.2
[packages/xorg-driver-input-synaptics.git] / restore-shm1.patch
1 From 6bac4ef0722dee2e4fa61359a90946b90fcb9b9f Mon Sep 17 00:00:00 2001
2 From: Felipe <fjfcavalcanti@gmail.com>
3 Date: Thu, 30 Jan 2014 13:41:04 -0300
4 Subject: [PATCH] Put SynapticsSHM back into the driver to be able to use
5  synclient -m once again
6
7 ---
8  include/synaptics.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
9  1 file changed, 52 insertions(+)
10  create mode 100644 include/synaptics.h
11
12 diff --git a/include/synaptics.h b/include/synaptics.h
13 new file mode 100644
14 index 0000000..a0020bb
15 --- /dev/null
16 +++ b/include/synaptics.h
17 @@ -0,0 +1,52 @@
18 +/*
19 + * Permission to use, copy, modify, distribute, and sell this software
20 + * and its documentation for any purpose is hereby granted without
21 + * fee, provided that the above copyright notice appear in all copies
22 + * and that both that copyright notice and this permission notice
23 + * appear in supporting documentation, and that the name of Red Hat
24 + * not be used in advertising or publicity pertaining to distribution
25 + * of the software without specific, written prior permission.  Red
26 + * Hat makes no representations about the suitability of this software
27 + * for any purpose.  It is provided "as is" without express or implied
28 + * warranty.
29 + *
30 + * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
31 + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
32 + * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
33 + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
34 + * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
35 + * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
36 + * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
37 + */
38 +
39 +#ifndef        _SYNAPTICS_H_
40 +#define _SYNAPTICS_H_
41 +
42 +#include <X11/Xdefs.h>
43 +
44 +/******************************************************************************
45 + *             Public definitions.
46 + *                     Used by driver and the shared memory configurator
47 + *****************************************************************************/
48 +
49 +#define SHM_SYNAPTICS 23947
50 +typedef struct _SynapticsSHM {
51 +    int version;                /* Driver version */
52 +
53 +    /* Current device state */
54 +    int x, y;                   /* actual x, y coordinates */
55 +    int z;                      /* pressure value */
56 +    int numFingers;             /* number of fingers */
57 +    int fingerWidth;            /* finger width value */
58 +    int left, right, up, down;  /* left/right/up/down buttons */
59 +    Bool multi[8];
60 +    Bool middle;
61 +} SynapticsSHM;
62 +
63 +/*
64 + * Minimum and maximum values for scroll_button_repeat
65 + */
66 +#define SBR_MIN 10
67 +#define SBR_MAX 1000
68 +
69 +#endif                          /* _SYNAPTICS_H_ */
This page took 0.108084 seconds and 3 git commands to generate.