[Xcb] Window closed event and xcb_connect return value.

Julien Danjou julien at danjou.info
Fri Apr 24 04:41:40 PDT 2009


At 1240571698 time_t, shuLhan wrote:
> 1. how to get window-closed event ?

Select unmap or destroy notify on the window.

> 2. how do i check fail in xcb_connect() ?
> 
> 	when i check in xcb_util.c, xcb_connect return
> 	(xcb_connection_t *) 1 if error. since xcb_connection_t is
> 	(struct) opaque type how do i cast this to integer ?

Just cast it.

Cheers,
-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// My root password is
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20090424/4c275891/attachment.pgp 


More information about the Xcb mailing list