Annotation of researchv9/X11/src/X.V11R1/lib/X/XChWindow.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XChWindow.c,v 11.6 87/09/11 08:01:46 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #include "Xlibint.h"
        !             7: 
        !             8: XResizeWindow(dpy, w, width, height)
        !             9: register Display *dpy;
        !            10: Window w;
        !            11: unsigned int width, height;
        !            12: {
        !            13:     register unsigned long *valuePtr;
        !            14:     register xConfigureWindowReq *req;
        !            15: 
        !            16:     LockDisplay(dpy);
        !            17:     GetReqExtra(ConfigureWindow, 8, req); /* 2 4-byte quantities */
        !            18: 
        !            19:     /* XXX assuming that sizeof(unsigned long) is 32 bits */
        !            20: 
        !            21:     req->window = w;
        !            22:     req->mask = CWWidth | CWHeight;
        !            23:     valuePtr = (unsigned long *) (req + 1);
        !            24:     *valuePtr++ = width;
        !            25:     *valuePtr++ = height;
        !            26:     UnlockDisplay(dpy);
        !            27:     SyncHandle();
        !            28: }

unix.superglobalmegacorp.com

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