Lines Matching refs:codes

279 CloseDisplayProc(Display *dpy, XExtCodes *codes)
385 CatchBadMatch(Display *dpy, xError *err, XExtCodes *codes, int *ret_code)
406 XExtCodes *codes = (XExtCodes *)NULL;
422 if ((codes = Codes[DPY_NUMBER(dpy)]) != NULL) {
427 return codes->first_event;
431 codes = XInitExtension(dpy, DPSNAME);
432 if (codes == NULL) {
434 codes = XInitExtension(dpy, DECDPSNAME);
436 if (codes == NULL) {
450 Codes[DPY_NUMBER(dpy)] = codes;
453 XESetCloseDisplay(dpy, codes->extension, CloseDisplayProc);
454 XESetWireToEvent(dpy, codes->first_event + PSEVENTOUTPUT,
456 XESetWireToEvent(dpy, codes->first_event + PSEVENTSTATUS,
458 XESetWireToEvent(dpy, codes->first_event + PSEVENTREADY,
460 first_event = codes->first_event;
473 oldErrorProc = XESetError(dpy, codes->extension, CatchBadMatch);
490 oldErrorProc = XESetError(dpy, codes->extension, oldErrorProc);
1409 XDPSLSetCodes(Display *dpy, XExtCodes *codes)
1411 Codes[DPY_NUMBER(dpy)] = codes;
1527 XExtCodes *codes = Codes[DPY_NUMBER(dpy)];
1531 if (event->type != ClientMessage || codes == NULL)
1535 codes->extension);
1562 XExtCodes *codes = Codes[DPY_NUMBER(dpy)];
1564 if (codes == NULL)
1581 oce->type = codes->first_event + PSEVENTOUTPUT;
1597 sce->type = codes->first_event + PSEVENTSTATUS;
1612 rce->type = codes->first_event + PSEVENTREADY;
1724 XExtCodes *codes = Codes[DPY_NUMBER(xdpy)];
1726 if (codes == NULL)
1731 codes->extension);
1972 XExtCodes *codes = Codes[DPY_NUMBER(dpy)];
1975 if (codes != NULL)
1980 codes->extension);
2010 oce->type = codes->first_event + PSEVENTOUTPUT;
2029 sce->type = codes->first_event + PSEVENTSTATUS;
2063 rce->type = codes->first_event + PSEVENTREADY;
2204 XExtCodes *codes = Codes[dpyix];
2208 codes->extension);