|
|
1.1 ! root 1: #include <X/mit-copyright.h> ! 2: ! 3: /* $Header: XQueryWindow.c,v 10.5 86/04/22 15:27:44 jg Rel $ */ ! 4: /* Copyright Massachusetts Institute of Technology 1985 */ ! 5: ! 6: #include "XlibInternal.h" ! 7: Status XQueryWindow (w, info) ! 8: Window w; ! 9: register WindowInfo *info; ! 10: { ! 11: register Display *dpy; ! 12: register XReq *req; ! 13: XRep rep; ! 14: ! 15: GetReq(X_QueryWindow, w); ! 16: ! 17: if (!_XReply(dpy, &rep)) ! 18: return (0); ! 19: info->height = rep.params0; ! 20: info->width = rep.params1; ! 21: info->x = rep.params2; ! 22: info->y = rep.params3; ! 23: info->bdrwidth = rep.params4; ! 24: info->mapped = rep.param.b[10]; ! 25: info->type = rep.param.b[11]; ! 26: info->assoc_wind = rep.param.l[3]; ! 27: return (1); ! 28: } ! 29:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.