Annotation of 43BSDTahoe/new/X/Xlib/XQueryMouse.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* $Header: XQueryMouse.c,v 10.5 86/04/22 15:25:29 jg Rel $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1985  */
        !             5: 
        !             6: #include "XlibInternal.h"
        !             7: Status XQueryMouse (w, x, y, subw)
        !             8:        Window w;
        !             9:        Window *subw;
        !            10:        int *x, *y;
        !            11: {
        !            12:        register Display *dpy;
        !            13:        register XReq *req;
        !            14:        XRep rep;
        !            15: 
        !            16:        GetReq(X_QueryMouse, w);
        !            17:        if (!_XReply(dpy, &rep))
        !            18:            return (0);
        !            19:        *x = rep.params2;
        !            20:        *y = rep.params3;
        !            21:        *subw = rep.param.l[0];
        !            22:        return (1);
        !            23: }
        !            24: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.