diff options
author | Keith Packard <keithp@neko.keithp.com> | 2006-11-07 01:29:51 -0800 |
---|---|---|
committer | Keith Packard <keithp@neko.keithp.com> | 2006-11-07 01:29:51 -0800 |
commit | 1dcda4f3c56214464c0b6123fea6daa69aae69fc (patch) | |
tree | c6bc9951e7479bf442e396b71f6e083fa193e1b5 /include/dixevents.h | |
parent | c20d3bf7533da0bf26beaf7d8c359d18edbd70e8 (diff) |
Avoid dereferencing sprite.screen when Xinerama is not running. (#8925)
With Xinerama support built into the X server but not in use,
sprite.screen is NULL and yet the SyntheticMotion
macro would dereference it. Avoid that by just passing sprite.screen
to PostSyntheticMotion which can then dereference it when Xinerama is
enabled.
Also, define PostSyntheticMotion in dixevents.h and include dixevents.h in
getevents.c
Diffstat (limited to 'include/dixevents.h')
-rw-r--r-- | include/dixevents.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dixevents.h b/include/dixevents.h index 2a9458f08..c78fb0e85 100644 --- a/include/dixevents.h +++ b/include/dixevents.h @@ -102,4 +102,8 @@ extern int ProcUngrabButton(ClientPtr /* client */); extern int ProcRecolorCursor(ClientPtr /* client */); +#ifdef PANORAMIX +extern void PostSyntheticMotion(int x, int y, ScreenPtr pScreen, unsigned long time); +#endif + #endif /* DIXEVENTS_H */ |