summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-11-07 11:13:32 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 23:24:23 +0200
commitf2903c12bb4bb0b7c94b96c55af8fa55507f9d7d (patch)
tree7a5d3acd85be299ff0c9f2e39973ae1ee99fcd79 /dix
parentd17ec01e8395a8f14b75a10c8bf082b3f5a4fb36 (diff)
SyntheticMotion: don't dereference sprite.screen when not using Xinerama
(cherry picked from aa052e43c6c293e14f78837e00c6b7581f9713bb commit)
Diffstat (limited to 'dix')
-rw-r--r--dix/events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c
index 7cfe0ad0c..0a39dcd9e 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -328,7 +328,8 @@ static void ConfineToShape(RegionPtr shape, int *px, int *py);
static void PostNewCursor(void);
#define SyntheticMotion(x, y) \
- PostSyntheticMotion(x, y, sprite.screen, \
+ PostSyntheticMotion(x, y, noPanoramiXExtension ? 0 : \
+ sprite.screen->myNum, \
syncEvents.playingEvents ? \
syncEvents.time.milliseconds : \
currentTime.milliseconds);