|
|
1.1 ! root 1: #include "copyright.h" ! 2: ! 3: /* $Header: XConfWind.c,v 11.6 87/09/11 08:02:07 toddb Exp $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1986 */ ! 5: ! 6: #include "Xlibint.h" ! 7: ! 8: XMoveResizeWindow(dpy, w, x, y, width, height) ! 9: register Display *dpy; ! 10: Window w; ! 11: int x, y; ! 12: unsigned int width, height; ! 13: { ! 14: unsigned long *valuePtr; ! 15: register xConfigureWindowReq *req; ! 16: ! 17: LockDisplay(dpy); ! 18: GetReqExtra(ConfigureWindow, 16, req); ! 19: req->window = w; ! 20: req->mask = CWX | CWY | CWWidth | CWHeight; ! 21: valuePtr = (unsigned long *) (req + 1); ! 22: *valuePtr++ = x; ! 23: *valuePtr++ = y; ! 24: *valuePtr++ = width; ! 25: *valuePtr = height; ! 26: UnlockDisplay(dpy); ! 27: SyncHandle(); ! 28: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.