Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 194055
Collapse All | Expand All

(-)file_not_specified_in_diff (-12 / +2 lines)
Line  Link Here
0
--
0
++ b/src/mouse.c
1
-- a/src/mouse.c
Lines 1853-1878 MouseConvert(InputInfoPtr pInfo, int fir Link Here
1853
1853
1854
/**********************************************************************
1854
/**********************************************************************
1855
 *
1855
 *
1856
 * FlushButtons -- send button up events for sanity.
1856
 * FlushButtons -- reset button states.
1857
 *
1857
 *
1858
 **********************************************************************/
1858
 **********************************************************************/
1859
1859
1860
static void
1860
static void
1861
FlushButtons(MouseDevPtr pMse)
1861
FlushButtons(MouseDevPtr pMse)
1862
{
1862
{
1863
1864
    /* If no button down is pending xf86PostButtonEvent()
1865
     * will discard them. So we are on the safe side. */
1866
1867
    int i, blocked;
1863
    int i, blocked;
1868
1864
1869
    pMse->lastButtons = 0;
1865
    pMse->lastButtons = 0;
1870
    pMse->lastMappedButtons = 0;
1866
    pMse->lastMappedButtons = 0;
1871
1872
    blocked = xf86BlockSIGIO ();
1873
    for (i = 1; i <= 5; i++)
1874
	xf86PostButtonEvent(pMse->device,0,i,0,0,0);
1875
    xf86UnblockSIGIO (blocked);
1876
}
1867
}
1877
1868
1878
/**********************************************************************
1869
/**********************************************************************

Return to bug 194055