diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-16 16:45:45 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-12-07 09:16:52 +1030 |
commit | 6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534 (patch) | |
tree | c4756779ec6dee49642f6b376e73468f1069ea52 /src | |
parent | 76a2231f87551f7c1943df18bc537b9b15987562 (diff) |
Bug #13144: Don't flush buttons, release events can cause paste events.
Diffstat (limited to 'src')
-rw-r--r-- | src/mouse.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mouse.c b/src/mouse.c index ff52d2b..bd98a80 100644 --- a/src/mouse.c +++ b/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); } /********************************************************************** |