1: #include <X/mit-copyright.h> 2: 3: /* $Header: XGetIconWind.c,v 10.4 86/02/01 15:35:07 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: Window XGetIconWindow (w) 8: Window w; 9: { 10: register Display *dpy; 11: register XReq *req; 12: XRep rep; 13: 14: GetReq(X_QueryWindow, w); 15: if (!_XReply(dpy, &rep)) 16: return(NULL); 17: return (rep.param.b[11] == IsIcon ? w : rep.param.l[3]); 18: }