diff options
author | Florent Thoumie <flz@FreeBSD.org> | 2008-03-13 14:06:52 +0000 |
---|---|---|
committer | Florent Thoumie <flz@FreeBSD.org> | 2008-03-13 14:06:52 +0000 |
commit | 86d21329371c61d20ead08060dbe3ac47b3d1d75 (patch) | |
tree | 8ff22ee2642613be3a3557a2aee1f0990896cc63 /x11-drivers/xf86-input-mouse/files | |
parent | ccb78bbdb7605d89c549a39672b6f3174791686b (diff) | |
download | ports-86d21329371c61d20ead08060dbe3ac47b3d1d75.tar.gz ports-86d21329371c61d20ead08060dbe3ac47b3d1d75.zip |
Notes
Diffstat (limited to 'x11-drivers/xf86-input-mouse/files')
-rw-r--r-- | x11-drivers/xf86-input-mouse/files/patch-dont-flush-buttons-6a03e8bd | 38 |
1 files changed, 38 insertions, 0 deletions
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); + } + + /********************************************************************** |