diff options
author | Eric Anholt <eric@anholt.net> | 2006-11-27 15:43:15 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2006-11-27 15:43:15 -0800 |
commit | b4b0d901d98371a8aa7b17d195e18e83e2a6a618 (patch) | |
tree | ee12953f0708194e3d77c0831fd0fe0e336bceb0 /dix/getevents.c | |
parent | 64de3baf85f6df274f71f736016f0848567cd9f6 (diff) | |
parent | d6cd0313c7f23f32c9c7dda00ff739e772bf7db3 (diff) |
Merge branch 'randr-1.2'
Conflicts:
dix/events.c
dix/getevents.c
hw/xfree86/common/xf86Mode.c
hw/xfree86/dri/Makefile.am
hw/xfree86/os-support/drm/xf86drm.c
hw/xfree86/os-support/xf86drm.h
Diffstat (limited to 'dix/getevents.c')
-rw-r--r-- | dix/getevents.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dix/getevents.c b/dix/getevents.c index c1b8840f9..be598bce8 100644 --- a/dix/getevents.c +++ b/dix/getevents.c @@ -39,6 +39,7 @@ #include "cursorstr.h" #include "dixstruct.h" #include "globals.h" +#include "dixevents.h" #include "mipointer.h" #ifdef XKB @@ -761,7 +762,7 @@ SwitchCorePointer(DeviceIntPtr pDev) * to shift the pointer to get it inside the new bounds. */ void -PostSyntheticMotion(int x, int y, int screenNum, unsigned long time) +PostSyntheticMotion(int x, int y, ScreenPtr pScreen, unsigned long time) { xEvent xE; @@ -770,8 +771,8 @@ PostSyntheticMotion(int x, int y, int screenNum, unsigned long time) will translate from sprite screen to screen 0 upon reentry to the DIX layer. */ if (!noPanoramiXExtension) { - x += panoramiXdataPtr[0].x - panoramiXdataPtr[screenNum].x; - y += panoramiXdataPtr[0].y - panoramiXdataPtr[screenNum].y; + x += panoramiXdataPtr[0].x - panoramiXdataPtr[pScreen->myNum].x; + y += panoramiXdataPtr[0].y - panoramiXdataPtr[pScreen->myNum].y; } #endif @@ -779,6 +780,7 @@ PostSyntheticMotion(int x, int y, int screenNum, unsigned long time) xE.u.u.type = MotionNotify; xE.u.keyButtonPointer.rootX = x; xE.u.keyButtonPointer.rootY = y; + xE.u.keyButtonPointer.time = time; (*inputInfo.pointer->public.processInputProc)(&xE, inputInfo.pointer, 1); } |