From d178b0140200a91efc554242a5bb5c50e5bb76a0 Mon Sep 17 00:00:00 2001 From: Deron Johnson Date: Sun, 16 Jan 2005 00:09:53 +0000 Subject: Part of the fix for 193. (lg3d-x11 0-6-1-18). --- src/TrCoords.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/TrCoords.c b/src/TrCoords.c index c686dbb..5fbeabb 100644 --- a/src/TrCoords.c +++ b/src/TrCoords.c @@ -31,6 +31,9 @@ in this Software without prior written authorization from The Open Group. #define LG3D #ifdef LG3D + +int Xlg3dSkipTranslateCoordinates = 0; + static Bool skip = False; static int skipCount = 2; #endif /* LG3D */ @@ -47,12 +50,14 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y, xTranslateCoordsReply rep; #ifdef LG3D - if (--skipCount <= 0) { - skip = True; - } + if (Xlg3dSkipTranslateCoordinates) { + if (--skipCount <= 0) { + skip = True; + } - if (skip) { - return (True); + if (skip) { + return (True); + } } #endif /* LG3D */ -- cgit v1.2.3