Part of the fix for 193. (lg3d-x11 0-6-1-18).

This commit is contained in:
Deron Johnson 2005-01-16 00:09:53 +00:00
parent dfad4db522
commit d178b01402

View file

@ -31,6 +31,9 @@ in this Software without prior written authorization from The Open Group.
#define LG3D #define LG3D
#ifdef LG3D #ifdef LG3D
int Xlg3dSkipTranslateCoordinates = 0;
static Bool skip = False; static Bool skip = False;
static int skipCount = 2; static int skipCount = 2;
#endif /* LG3D */ #endif /* LG3D */
@ -47,12 +50,14 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
xTranslateCoordsReply rep; xTranslateCoordsReply rep;
#ifdef LG3D #ifdef LG3D
if (--skipCount <= 0) { if (Xlg3dSkipTranslateCoordinates) {
skip = True; if (--skipCount <= 0) {
} skip = True;
}
if (skip) { if (skip) {
return (True); return (True);
}
} }
#endif /* LG3D */ #endif /* LG3D */