diff options
author | Deron Johnson <deron.johnson@sun.com> | 2005-01-20 23:47:24 +0000 |
---|---|---|
committer | Deron Johnson <deron.johnson@sun.com> | 2005-01-20 23:47:24 +0000 |
commit | 1deb3e942c42ae9b85cf58c960bd5b816d3d88b2 (patch) | |
tree | f472953d387c2c136cf070eae9f17b2e5a087d83 | |
parent | 0fb00befd18e5e2ecf52ccda654b8fa2ceab9a31 (diff) |
Integrate changes for release-0-6-1lg3d-rel-0-7-0
-rw-r--r-- | src/TrCoords.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/TrCoords.c b/src/TrCoords.c index 2363248..5fbeabb 100644 --- a/src/TrCoords.c +++ b/src/TrCoords.c @@ -28,6 +28,16 @@ in this Software without prior written authorization from The Open Group. #define NEED_REPLIES #include "Xlibint.h" +#define LG3D + +#ifdef LG3D + +int Xlg3dSkipTranslateCoordinates = 0; + +static Bool skip = False; +static int skipCount = 2; +#endif /* LG3D */ + Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, dst_x, dst_y, child) register Display *dpy; @@ -39,6 +49,18 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, register xTranslateCoordsReq *req; xTranslateCoordsReply rep; +#ifdef LG3D + if (Xlg3dSkipTranslateCoordinates) { + if (--skipCount <= 0) { + skip = True; + } + + if (skip) { + return (True); + } + } +#endif /* LG3D */ + LockDisplay(dpy); GetReq(TranslateCoords, req); req->srcWid = src_win; @@ -56,6 +78,7 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, *dst_y = cvtINT16toInt (rep.dstY); UnlockDisplay(dpy); SyncHandle(); + return ((int)rep.sameScreen); } |