Lines Matching defs:dpy
56 static int WxError (Display *dpy,int mc);
66 Initialize(dpy)
67 Display *dpy;
71 if (dpy->display_name[0] != ':') {
75 if (strncmp("unix",dpy->display_name,4) &&
76 strncmp("localhost",dpy->display_name,9) &&
77 strncmp(hostname,dpy->display_name,strlen(hostname))) {
83 if (XQueryExtension(dpy, "SunWindowGrabber",&X_WxExtensionCode,
86 else if (!strcmp(dpy->vendor,"X11/NeWS - Sun Microsystems Inc."))
92 Display *dpy,
99 Initialize(dpy);
103 LockDisplay(dpy);
106 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
107 UnlockDisplay(dpy);
111 LockDisplay(dpy);
113 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
114 UnlockDisplay(dpy);
118 WxError(dpy,X_WxGrab);
127 Display *dpy,
134 Initialize(dpy);
138 LockDisplay(dpy);
141 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
142 UnlockDisplay(dpy);
146 LockDisplay(dpy);
148 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
149 UnlockDisplay(dpy);
153 WxError(dpy,X_WxUnGrab);
163 Display *dpy,
170 Initialize(dpy);
174 LockDisplay(dpy);
177 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
178 UnlockDisplay(dpy);
183 WxError(dpy,X_WxGrabColormap);
192 Display *dpy,
199 Initialize(dpy);
203 LockDisplay(dpy);
206 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
207 UnlockDisplay(dpy);
212 WxError(dpy,X_WxGrabColormap);
222 Display *dpy,
229 Initialize(dpy);
233 LockDisplay(dpy);
236 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
237 UnlockDisplay(dpy);
242 WxError(dpy,X_WxGrabRetained);
251 Display *dpy,
258 Initialize(dpy);
262 LockDisplay(dpy);
265 (void) _XReply(dpy, (xReply *) &rep, 0, xFalse);
266 UnlockDisplay(dpy);
271 WxError(dpy,X_WxUnGrabRetained);
281 Display *dpy,
289 Initialize(dpy);
293 LockDisplay(dpy);
296 (void) _XReply(dpy, (xReply *) &rep,
298 UnlockDisplay(dpy);
304 WxError(dpy,X_WxGetRetainedPath);
317 Display *dpy,
323 event.display = dpy;
328 event.serial = dpy->request;
330 return ((*_XErrorFunction)(dpy, &event));