--- ../xf86-input-mouse-1.2.2-orig/src/mouse.c 2007-07-05 03:13:45 +0900 +++ src/mouse.c 2008-01-05 03:15:34 +0900 @@ -1861,6 +1861,8 @@ static void FlushButtons(MouseDevPtr pMse) { +#if 0 /* xf86PostButtonEvent() does not actually discard the events, + * so this will generate spurious events on a VT change. --AC */ /* If no button down is pending xf86PostButtonEvent() * will discard them. So we are on the safe side. */ @@ -1874,6 +1876,8 @@ for (i = 1; i <= 5; i++) xf86PostButtonEvent(pMse->device,0,i,0,0,0); xf86UnblockSIGIO (blocked); + +#endif /* 0 */ } /**********************************************************************