summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeron Johnson <deron.johnson@sun.com>2005-01-16 00:09:53 +0000
committerDeron Johnson <deron.johnson@sun.com>2005-01-16 00:09:53 +0000
commitd178b0140200a91efc554242a5bb5c50e5bb76a0 (patch)
treef472953d387c2c136cf070eae9f17b2e5a087d83
parentdfad4db522ee9af4804b2770451ff73154b81636 (diff)
Part of the fix for 193. (lg3d-x11 0-6-1-18).rel-0-6-1
-rw-r--r--src/TrCoords.c15
1 files 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 */