mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-08 09:08:18 +02:00
Integrate changes up to lg3d-dev-0-6-1-15 plus lg3d-dev-0-6-1-16 (disabled debug visualize).
This commit is contained in:
parent
0fb00befd1
commit
a1757721ad
1 changed files with 18 additions and 0 deletions
|
|
@ -28,6 +28,13 @@ in this Software without prior written authorization from The Open Group.
|
|||
#define NEED_REPLIES
|
||||
#include "Xlibint.h"
|
||||
|
||||
#define LG3D
|
||||
|
||||
#ifdef LG3D
|
||||
static Bool skip = False;
|
||||
static int skipCount = 2;
|
||||
#endif /* LG3D */
|
||||
|
||||
Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
|
||||
dst_x, dst_y, child)
|
||||
register Display *dpy;
|
||||
|
|
@ -39,6 +46,16 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
|
|||
register xTranslateCoordsReq *req;
|
||||
xTranslateCoordsReply rep;
|
||||
|
||||
#ifdef LG3D
|
||||
if (--skipCount <= 0) {
|
||||
skip = True;
|
||||
}
|
||||
|
||||
if (skip) {
|
||||
return (True);
|
||||
}
|
||||
#endif /* LG3D */
|
||||
|
||||
LockDisplay(dpy);
|
||||
GetReq(TranslateCoords, req);
|
||||
req->srcWid = src_win;
|
||||
|
|
@ -56,6 +73,7 @@ Bool XTranslateCoordinates(dpy, src_win, dest_win, src_x, src_y,
|
|||
*dst_y = cvtINT16toInt (rep.dstY);
|
||||
UnlockDisplay(dpy);
|
||||
SyncHandle();
|
||||
|
||||
return ((int)rep.sameScreen);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue