aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2008-03-13 14:06:52 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2008-03-13 14:06:52 +0000
commit86d21329371c61d20ead08060dbe3ac47b3d1d75 (patch)
tree8ff22ee2642613be3a3557a2aee1f0990896cc63 /x11-drivers
parentccb78bbdb7605d89c549a39672b6f3174791686b (diff)
downloadports-86d21329371c61d20ead08060dbe3ac47b3d1d75.tar.gz
ports-86d21329371c61d20ead08060dbe3ac47b3d1d75.zip
Notes
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-input-mouse/Makefile1
-rw-r--r--x11-drivers/xf86-input-mouse/files/patch-dont-flush-buttons-6a03e8bd38
2 files changed, 39 insertions, 0 deletions
diff --git a/x11-drivers/xf86-input-mouse/Makefile b/x11-drivers/xf86-input-mouse/Makefile
index 6b2f8317620c..d15f8e242662 100644
--- a/x11-drivers/xf86-input-mouse/Makefile
+++ b/x11-drivers/xf86-input-mouse/Makefile
@@ -7,6 +7,7 @@
PORTNAME= xf86-input-mouse
PORTVERSION= 1.2.3
+PORTREVISION= 1
CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org
diff --git a/x11-drivers/xf86-input-mouse/files/patch-dont-flush-buttons-6a03e8bd b/x11-drivers/xf86-input-mouse/files/patch-dont-flush-buttons-6a03e8bd
new file mode 100644
index 000000000000..d1a21ed5f306
--- /dev/null
+++ b/x11-drivers/xf86-input-mouse/files/patch-dont-flush-buttons-6a03e8bd
@@ -0,0 +1,38 @@
+From 6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534 Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter@cs.unisa.edu.au>
+Date: Fri, 16 Nov 2007 06:15:45 +0000
+Subject: Bug #13144: Don't flush buttons, release events can cause paste events.
+
+---
+diff --git src/mouse.c src/mouse.c
+index ff52d2b..bd98a80 100644
+--- src/mouse.c
++++ src/mouse.c
+@@ -1853,26 +1853,17 @@ MouseConvert(InputInfoPtr pInfo, int first, int num, int v0, int v1, int v2,
+
+ /**********************************************************************
+ *
+- * FlushButtons -- send button up events for sanity.
++ * FlushButtons -- reset button states.
+ *
+ **********************************************************************/
+
+ static void
+ FlushButtons(MouseDevPtr pMse)
+ {
+-
+- /* If no button down is pending xf86PostButtonEvent()
+- * will discard them. So we are on the safe side. */
+-
+ int i, blocked;
+
+ pMse->lastButtons = 0;
+ pMse->lastMappedButtons = 0;
+-
+- blocked = xf86BlockSIGIO ();
+- for (i = 1; i <= 5; i++)
+- xf86PostButtonEvent(pMse->device,0,i,0,0,0);
+- xf86UnblockSIGIO (blocked);
+ }
+
+ /**********************************************************************