1: #include <X/mit-copyright.h> 2: 3: /* $Header: XGrabMouse.c,v 10.4 86/02/01 15:35:26 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: Status XGrabMouse (w, cursor, mask) 8: Window w; 9: Cursor cursor; 10: int mask; 11: { 12: register Display *dpy; 13: register XReq *req; 14: XRep rep; 15: 16: GetReq(X_GrabMouse, w); 17: req->param.l[0] = cursor; 18: req->param.l[1] = mask; 19: return(_XReply(dpy, &rep)); 20: }