[Xcb] Responding to _NET_WM_PING

Nicholas Allen nick.allen at onlinehome.de
Mon Mar 22 11:18:02 PDT 2010


Argh - a silly copy and paste bug. Sorry for the silly mistake and
thanks for pointing it out ;-)

Nick

Peter Harris wrote:
> On 2010-03-22 12:13, Nicholas Allen wrote:
>   
>>          xcb_client_message_event_t* clientEvent =
>>     
>
> clientEvent is a pointer to xcb_client_message_event_t.
>
>   
>>                xcb_send_event(connection, false, screen->root,
>> XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT,
>> (const char*)&clientEvent);
>>     
>
> &clientEvent is a pointer to a pointer to xcb_client_message_event_t.
>
> I'm pretty sure that's not what xcb_send_event expects. Does it work if
> you drop the extra '&'?
>
> Peter Harris
>   



More information about the Xcb mailing list