detecting x capabilities at run-time

Alan Coopersmith alan.coopersmith at sun.com
Sun Oct 15 16:34:28 PDT 2006


Carlos Eduardo R. Diógenes wrote:
> Hi,
> 
> How can I detect the X server capabilities, like support to damage, composite and xfixes, at run-time?
> 
> Someone tried something like this and can point me to some source-code that do this?

You check for the supported extensions - you should be able to find examples
throughout the X sample apps - especially in xdpyinfo.   Most extensions have
a specific QueryExtension function, such as XFixesQueryExtension().

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



More information about the xorg mailing list