1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XQueryWindow.c,v 10.4 86/02/01 15:39:15 tony 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.param.s[0];
  20:     info->width = rep.param.s[1];
  21:     info->x = rep.param.s[2];
  22:     info->y = rep.param.s[3];
  23:     info->bdrwidth = rep.param.s[4];
  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: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 734
Valid CSS Valid XHTML 1.0 Strict