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
|
||||
|
||||
#ifdef LG3D
|
||||
|
||||
int Xlg3dSkipTranslateCoordinates = 0;
|
||||
|
||||
static Bool skip = False;
|
||||
static int skipCount = 2;
|
||||
#endif /* LG3D */
|
||||
|
|
@ -47,6 +50,7 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
|
|||
xTranslateCoordsReply rep;
|
||||
|
||||
#ifdef LG3D
|
||||
if (Xlg3dSkipTranslateCoordinates) {
|
||||
if (--skipCount <= 0) {
|
||||
skip = True;
|
||||
}
|
||||
|
|
@ -54,6 +58,7 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
|
|||
if (skip) {
|
||||
return (True);
|
||||
}
|
||||
}
|
||||
#endif /* LG3D */
|
||||
|
||||
LockDisplay(dpy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue