[oe-commits] David-John Willis : xf86-input-tslib: Add patch to stop events being flooded upto to the X server.

git version control git at git.openembedded.org
Tue Dec 15 13:49:04 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: f36da0e8e45ec62d1963dfba011b3b39df8f7edb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f36da0e8e45ec62d1963dfba011b3b39df8f7edb

Author: David-John Willis <John.Willis at Distant-earth.com>
Date:   Mon Dec  7 09:50:05 2009 +0000

xf86-input-tslib: Add patch to stop events being flooded upto to the X server.

---

 .../xf86-input-tslib/dontfloodevents006.patch      |   22 ++++++++++++++++++++
 recipes/xorg-driver/xf86-input-tslib_0.0.6.bb      |    4 ++-
 2 files changed, 25 insertions(+), 1 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 0000000..e989717
--- /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);
+ 
diff --git a/recipes/xorg-driver/xf86-input-tslib_0.0.6.bb b/recipes/xorg-driver/xf86-input-tslib_0.0.6.bb
index 785e5f4..e86f0c7 100644
--- a/recipes/xorg-driver/xf86-input-tslib_0.0.6.bb
+++ b/recipes/xorg-driver/xf86-input-tslib_0.0.6.bb
@@ -4,7 +4,10 @@ DESCRIPTION = "X.Org X server -- tslib input driver"
 RRECOMMENDS += "hal tslib-calibrate"
 DEPENDS += "tslib"
 
+PR = "r2"
+
 SRC_URI = "http://www.pengutronix.de/software/xf86-input-tslib/download/xf86-input-tslib-${PV}.tar.bz2 \
+           file://dontfloodevents006.patch;patch=1 \
            file://10-x11-input-tslib.fdi"
 
 do_configure_prepend() {
@@ -17,4 +20,3 @@ do_install_append() {
 }
 
 FILES_${PN} += "${datadir}/hal"
-





More information about the Openembedded-commits mailing list