diff options
author | Deron Johnson <deron.johnson@sun.com> | 2005-01-08 05:52:49 +0000 |
---|---|---|
committer | Deron Johnson <deron.johnson@sun.com> | 2005-01-08 05:52:49 +0000 |
commit | a1757721ade0905fc124c4585283d99d1d7886fd (patch) | |
tree | 2a7c3d0f9b80e12c1c2f75e5b56985581e83e241 | |
parent | 0fb00befd18e5e2ecf52ccda654b8fa2ceab9a31 (diff) |
Integrate changes up to lg3d-dev-0-6-1-15 plus lg3d-dev-0-6-1-16 (disabled debug visualize).lg3d-dev-0-6-1-current
-rw-r--r-- | src/TrCoords.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/TrCoords.c b/src/TrCoords.c index 2363248d..c686dbb3 100644 --- a/src/TrCoords.c +++ b/src/TrCoords.c @@ -28,6 +28,13 @@ in this Software without prior written authorization from The Open Group. #define NEED_REPLIES #include "Xlibint.h" +#define LG3D + +#ifdef LG3D +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 +46,16 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, register xTranslateCoordsReq *req; xTranslateCoordsReply rep; +#ifdef LG3D + if (--skipCount <= 0) { + skip = True; + } + + if (skip) { + return (True); + } +#endif /* LG3D */ + LockDisplay(dpy); GetReq(TranslateCoords, req); req->srcWid = src_win; @@ -56,6 +73,7 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, *dst_y = cvtINT16toInt (rep.dstY); UnlockDisplay(dpy); SyncHandle(); + return ((int)rep.sameScreen); } |