xfree86/dga: Remove DGAMouseX and DGAMouseY
Previously some sort of absolute coordinates were sent out in the padding of the DGA2 Motion and Button events. DGAMouseX and DGAMouseY were used to keep track of said coordinates. libXxf86dga doesn't use that data for anything, and at least git history didn't show any past usage either. So let's just remove the last remnants of of this mess. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ee8faeadb6
commit
ce4e0f660b
|
@ -942,8 +942,6 @@ DGAStealKeyEvent(DeviceIntPtr dev, int index, int key_code, int is_down)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static int DGAMouseX, DGAMouseY;
|
||||
|
||||
Bool
|
||||
DGAStealMotionEvent(DeviceIntPtr dev, int index, int dx, int dy)
|
||||
{
|
||||
|
@ -958,17 +956,6 @@ DGAStealMotionEvent(DeviceIntPtr dev, int index, int dx, int dy)
|
|||
if(!pScreenPriv || !pScreenPriv->grabMouse) /* no direct mode */
|
||||
return FALSE;
|
||||
|
||||
DGAMouseX += dx;
|
||||
if (DGAMouseX < 0)
|
||||
DGAMouseX = 0;
|
||||
else if (DGAMouseX > screenInfo.screens[index]->width)
|
||||
DGAMouseX = screenInfo.screens[index]->width;
|
||||
DGAMouseY += dy;
|
||||
if (DGAMouseY < 0)
|
||||
DGAMouseY = 0;
|
||||
else if (DGAMouseY > screenInfo.screens[index]->height)
|
||||
DGAMouseY = screenInfo.screens[index]->height;
|
||||
|
||||
memset(&event, 0, sizeof(event));
|
||||
event.header = ET_Internal;
|
||||
event.type = ET_DGAEvent;
|
||||
|
|
Loading…
Reference in New Issue
Block a user