Annotation of researchv9/X11/src/X.V11R1/lib/X/XGetSOwner.c, revision 1.1.1.1

1.1       root        1: #include "copyright.h"
                      2: 
                      3: /* $Header: XGetSOwner.c,v 11.12 87/09/11 08:04:28 toddb Exp $ */
                      4: /* Copyright    Massachusetts Institute of Technology    1986  */
                      5: 
                      6: #define NEED_REPLIES
                      7: #include "Xlibint.h"
                      8: 
                      9: Window XGetSelectionOwner(dpy, selection)
                     10: register Display *dpy;
                     11: Atom selection;
                     12: {
                     13:     xGetSelectionOwnerReply rep;
                     14:     register xResourceReq *req;
                     15:     LockDisplay(dpy);
                     16:     GetResReq(GetSelectionOwner, selection, req);
                     17: 
                     18:     if (_XReply(dpy, (xReply *)&rep, 0, xTrue) == 0) rep.owner = None;
                     19:     UnlockDisplay(dpy);
                     20:     SyncHandle();
                     21:     return(rep.owner);
                     22: }

unix.superglobalmegacorp.com

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