--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- --- a/src/mouse.c +++ b/src/mouse.c @@ -1853,26 +1853,17 @@ MouseConvert(InputInfoPtr pInfo, int fir /********************************************************************** * - * 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); } /**********************************************************************