summaryrefslogtreecommitdiff
path: root/recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2009-12-07 09:50:05 +0000
committerPhilip Balister <philip@balister.org>2009-12-14 18:28:09 -0500
commitf36da0e8e45ec62d1963dfba011b3b39df8f7edb (patch)
tree1a97d4863ad2c155b9e8c26fe0c5f767f851b74c /recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch
parent6593275fb47f8fad1255159312fb5b2544382e1f (diff)
xf86-input-tslib: Add patch to stop events being flooded upto to the X server.
Diffstat (limited to 'recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch')
-rw-r--r--recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch b/recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch
new file mode 100644
index 0000000000..e989717d3b
--- /dev/null
+++ b/recipes/xorg-driver/xf86-input-tslib/dontfloodevents006.patch
@@ -0,0 +1,22 @@
+Index: xf86-input-tslib-0.0.6/src/tslib.c
+===================================================================
+--- xf86-input-tslib-0.0.6.orig/src/tslib.c 2009-11-29 20:03:29.734794324 +0000
++++ xf86-input-tslib-0.0.6/src/tslib.c 2009-11-29 20:29:24.066794215 +0000
+@@ -205,7 +205,7 @@
+ */
+ switch (priv->state) {
+ case BUTTON_EMULATION_OFF :
+- if(priv->lastp != samp.pressure) {
++ if(!!priv->lastp != !!samp.pressure) {
+ priv->lastp = samp.pressure;
+ xf86PostButtonEvent(local->dev, TRUE,
+ 1, !!samp.pressure, 0, 2,
+@@ -512,7 +512,7 @@
+ s = xf86CheckStrOption(dev->commonOptions, "path", NULL);
+ if (!s)
+ s = xf86CheckStrOption(dev->commonOptions, "Device", NULL);
+-
++
+ priv->ts = ts_open(s, 1);
+ xfree(s);
+