Matching client windows by resource IDs

Glynn Clements glynn at gclements.plus.com
Sat Jun 6 03:19:41 PDT 2009


Christian Pirchheim wrote:

> Wonder if there are client-side functions which allow to retrieve resource mask 
> and base XIDs (as defined in the _XDisplay struct) given only a particular 
> resource (e.g. Window) XID. IOW: Are functions available, which have signatures 
> similar to:
> 
> void XGetResourceMaskAndBase(XID resource, XID *mask, XID *base);

Not quite; libXRes has:

typedef struct {
	XID	resource_base;
	XID	resource_mask;
} XResClient;

Status XResQueryClients(Display *dpy, int *num_clients, XResClient **clients);

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list