[Xcb] Responding to _NET_WM_PING

Nicholas Allen nick.allen at onlinehome.de
Mon Mar 22 11:27:26 PDT 2010


Actually it seems it doesn't work even when I remove the '&'. So copying
the event seems to be necessary...

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