1: #include <X/mit-copyright.h> 2: 3: /* $Header: XInterpLoc.c,v 10.4 86/02/01 15:35:41 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: Status XInterpretLocator (w, x, y, subw, loc) 8: Window w; 9: Window *subw; 10: Locator loc; 11: int *x, *y; 12: { 13: register Display *dpy; 14: register XReq *req; 15: XRep rep; 16: 17: GetReq(X_InterpretLocator, w); 18: req->param.l[0] = loc; 19: if (!_XReply(dpy, &rep)) 20: return(0); 21: *x = rep.param.s[2]; 22: *y = rep.param.s[3]; 23: *subw = rep.param.l[0]; 24: return (1); 25: }