mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2025-12-20 07:00:12 +01:00
Part of the fix for 193. (lg3d-x11 0-6-1-18).
This commit is contained in:
parent
dfad4db522
commit
d178b01402
1 changed files with 10 additions and 5 deletions
|
|
@ -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 */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue