diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2006-12-27 16:38:06 +0000 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-27 16:38:06 +0000 |
commit | 05f915050cad72d4fb39cbb886be57beeac18749 (patch) | |
tree | 6c9ae85c125231fb36f124657d87f559037ce085 /dix/getevents.c | |
parent | c1674660a7115ebf993dcde78f4e45f756e4c951 (diff) |
dix/events: take screen number, not pointer, in PostSyntheticMotion
Since we were using PostSyntheticMotion incorrectly anyway, update the
declared API to match.
Diffstat (limited to 'dix/getevents.c')
-rw-r--r-- | dix/getevents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index 0150d6658..8b2a44d70 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -761,7 +761,7 @@ SwitchCorePointer(DeviceIntPtr pDev) * to shift the pointer to get it inside the new bounds. */ void -PostSyntheticMotion(int x, int y, ScreenPtr pScreen, unsigned long time) +PostSyntheticMotion(int x, int y, int screen, unsigned long time) { xEvent xE; @@ -770,8 +770,8 @@ PostSyntheticMotion(int x, int y, ScreenPtr pScreen, unsigned long time) will translate from sprite screen to screen 0 upon reentry to the DIX layer. */ if (!noPanoramiXExtension) { - x += panoramiXdataPtr[0].x - panoramiXdataPtr[pScreen->myNum].x; - y += panoramiXdataPtr[0].y - panoramiXdataPtr[pScreen->myNum].y; + x += panoramiXdataPtr[0].x - panoramiXdataPtr[screen].x; + y += panoramiXdataPtr[0].y - panoramiXdataPtr[screen].y; } #endif |