summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <vignatti@c3sl.ufpr.br>2008-10-08 03:19:45 -0300
committerTiago Vignatti <vignatti@c3sl.ufpr.br>2008-10-08 03:41:17 -0300
commitd1bb5e3b47ab71aa2f18f69daaf2a4c5ce06d800 (patch)
treef761295989f2309f98795d6f8774d95abe1a1726
parent4964a9ca6c3f26376469b6d8217815a47231f0a9 (diff)
mi: functions here are carrying 'time' without need.
-rw-r--r--dix/getevents.c2
-rw-r--r--mi/mipointer.c17
-rw-r--r--mi/mipointer.h3
3 files changed, 10 insertions, 12 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index ed7bf7ffa..4770a699d 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -916,7 +916,7 @@ GetPointerEvents(EventList *events, DeviceIntPtr pDev, int type, int buttons,
/* This takes care of crossing screens for us, as well as clipping
* to the current screen. Right now, we only have one history buffer,
* so we don't set this for both the device and core.*/
- miPointerSetPosition(pDev, &pDev->last.valuators[0], &pDev->last.valuators[1], ms);
+ miPointerSetPosition(pDev, &pDev->last.valuators[0], &pDev->last.valuators[1]);
if (master) {
master->last.valuators[0] = pDev->last.valuators[0];
diff --git a/mi/mipointer.c b/mi/mipointer.c
index c13188276..b998cd4a2 100644
--- a/mi/mipointer.c
+++ b/mi/mipointer.c
@@ -74,8 +74,7 @@ static Bool miPointerSetCursorPosition(DeviceIntPtr pDev, ScreenPtr pScreen,
Bool generateEvent);
static Bool miPointerCloseScreen(int index, ScreenPtr pScreen);
static void miPointerMove(DeviceIntPtr pDev, ScreenPtr pScreen,
- int x, int y,
- unsigned long time);
+ int x, int y);
static Bool miPointerDeviceInitialize(DeviceIntPtr pDev, ScreenPtr pScreen);
static void miPointerDeviceCleanup(DeviceIntPtr pDev,
ScreenPtr pScreen);
@@ -315,7 +314,7 @@ miPointerWarpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
if (GenerateEvent)
{
- miPointerMove (pDev, pScreen, x, y, GetTimeInMillis());
+ miPointerMove (pDev, pScreen, x, y);
}
else
{
@@ -457,13 +456,13 @@ miPointerGetScreen(DeviceIntPtr pDev)
_X_EXPORT void
miPointerAbsoluteCursor (int x, int y, unsigned long time)
{
- miPointerSetPosition(inputInfo.pointer, &x, &y, time);
+ miPointerSetPosition(inputInfo.pointer, &x, &y);
}
/* Move the pointer on the current screen, and update the sprite. */
static void
miPointerMoved (DeviceIntPtr pDev, ScreenPtr pScreen,
- int x, int y, unsigned long time)
+ int x, int y)
{
miPointerPtr pPointer;
SetupScreen(pScreen);
@@ -489,7 +488,7 @@ miPointerMoved (DeviceIntPtr pDev, ScreenPtr pScreen,
}
_X_EXPORT void
-miPointerSetPosition(DeviceIntPtr pDev, int *x, int *y, unsigned long time)
+miPointerSetPosition(DeviceIntPtr pDev, int *x, int *y)
{
miPointerScreenPtr pScreenPriv;
ScreenPtr pScreen;
@@ -538,7 +537,7 @@ miPointerSetPosition(DeviceIntPtr pDev, int *x, int *y, unsigned long time)
pPointer->pScreen == pScreen)
return;
- miPointerMoved(pDev, pScreen, *x, *y, time);
+ miPointerMoved(pDev, pScreen, *x, *y);
}
_X_EXPORT void
@@ -549,12 +548,12 @@ miPointerGetPosition(DeviceIntPtr pDev, int *x, int *y)
}
void
-miPointerMove (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y, unsigned long time)
+miPointerMove (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
{
int i, nevents;
int valuators[2];
- miPointerMoved(pDev, pScreen, x, y, time);
+ miPointerMoved(pDev, pScreen, x, y);
/* generate motion notify */
valuators[0] = x;
diff --git a/mi/mipointer.h b/mi/mipointer.h
index 6119c25f6..d1eac987f 100644
--- a/mi/mipointer.h
+++ b/mi/mipointer.h
@@ -149,8 +149,7 @@ extern void miPointerGetPosition(
extern void miPointerSetPosition(
DeviceIntPtr pDev,
int *x,
- int *y,
- unsigned long time);
+ int *y);
extern void miPointerUpdateSprite(
DeviceIntPtr pDev);