summaryrefslogtreecommitdiff
path: root/mi
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 /mi
parent4964a9ca6c3f26376469b6d8217815a47231f0a9 (diff)
mi: functions here are carrying 'time' without need.
Diffstat (limited to 'mi')
-rw-r--r--mi/mipointer.c17
-rw-r--r--mi/mipointer.h3
2 files changed, 9 insertions, 11 deletions
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);