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
8 include/synaptics.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
9 1 file changed, 52 insertions(+)
10 create mode 100644 include/synaptics.h
12 diff --git a/include/synaptics.h b/include/synaptics.h
14 index 0000000..a0020bb
16 +++ b/include/synaptics.h
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
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.
39 +#ifndef _SYNAPTICS_H_
40 +#define _SYNAPTICS_H_
42 +#include <X11/Xdefs.h>
44 +/******************************************************************************
45 + * Public definitions.
46 + * Used by driver and the shared memory configurator
47 + *****************************************************************************/
49 +#define SHM_SYNAPTICS 23947
50 +typedef struct _SynapticsSHM {
51 + int version; /* Driver version */
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 */
64 + * Minimum and maximum values for scroll_button_repeat
69 +#endif /* _SYNAPTICS_H_ */