[Xcb] Window closed event and xcb_connect return value.
Vincent Torri
vtorri at univ-evry.fr
Fri Apr 24 04:59:14 PDT 2009
On Fri, 24 Apr 2009, Julien Danjou wrote:
> 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.
It is not 1 that is returned. What is returned is a pointer which point to
an int which value is 1, which is quite strange
Can someone tell me WHY NULL is not returned in case of error ?
Vincent
More information about the Xcb
mailing list