[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xlib and file descriptors

On Wed, Aug 18, 1999 at 12:14:44AM +0000, Pierre Phaneuf wrote:
> Speaking of file descriptors, does anybody know of a way to get the fd
> of the connection to the X server or at least a "pseudo-select" (like
> Svgalib has)?

You can use dsp->fd, where dsp is `Display *' returned by XOpenDisplay. If you
use this then you must compile with XLIB_ILLEGAL_ACCESS #define-d.

Borko Jandras	<bjandras@public.srce.hr>