[Xcb] client message event strangeness

Peter Hutterer mailinglists at who-t.net
Wed Apr 11 18:34:19 PDT 2007


On 11/04/2007, at 22:22 , Vincent Torri wrote:
> I asked that question because there is that code in ecore_xcb :
>
> (ev->response_type - rep->first_event) !=  
> XCB_RANDR_SCREEN_CHANGE_NOTIFY
>
> I gues that it should instead be:
>
> ((ev->response_type & ~0x80) - rep->first_event) !=  
> XCB_RANDR_SCREEN_CHANGE_NOTIFY

yes, bit 0x80 is only used for client message events. you always need  
to subtract it.

Cheers,
   Peter

--
Multi-Pointer X Server
http://wearables.unisa.edu.au/mpx




More information about the Xcb mailing list