Lines Matching refs:dpy
58 static void list_window (Display *dpy, Window w, int depth, int indent,
102 Display *dpy,
118 XGetErrorText(dpy, rep->error_code, buffer, BUFSIZ);
119 XGetErrorDatabaseText(dpy, mtype, "XError", "X Error", mesg, BUFSIZ);
121 XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d",
125 XGetErrorDatabaseText(dpy, "XRequest", number, "", buffer, BUFSIZ);
128 XGetErrorDatabaseText(dpy, mtype, "MinorCode", "Request Minor code",
132 XGetErrorDatabaseText(dpy, mtype, "ResourceID", "ResourceID 0x%x",
136 XGetErrorDatabaseText(dpy, mtype, "ErrorSerial", "Error Serial #%d",
140 XGetErrorDatabaseText(dpy, mtype, "CurrentSerial", "Current Serial #%d",
142 (void) fprintf(stderr, mesg, NextRequest(dpy)-1);
155 Display *dpy;
205 dpy = XOpenDisplay (displayname);
206 if (!dpy) {
216 list_window (dpy, RootWindow (dpy, DefaultScreen (dpy)), 0,
226 list_window (dpy, w, 0, indent, long_version, print_resources,
232 XCloseDisplay (dpy);
239 Display *dpy,
270 (void) XFetchName (dpy, w, &name);
280 if (XGetClassHint (dpy, w, &ch)) {
288 if (XGetGeometry(dpy, w, &root, &x,&y,&width,&height,&bw,&depth)) {
292 if (XTranslateCoordinates (dpy, w,root,0,0,&rx,&ry,&child)) {
298 (void) XGetClassHint (dpy, w, &ch);
312 if (!XQueryTree (dpy, w, &root, &parent, &children, &nchildren))
320 list_window (dpy, children[n], depth + 1, indent, long_version,