[Xcb] events and connection

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Tue Apr 5 14:35:12 PDT 2005



On Tue, 5 Apr 2005, Jamey Sharp wrote:

> On Tue, Apr 05, 2005 at 08:37:03PM +0200, Vincent Torri wrote:
> > Hello,
>
> Hi Vincent!
>
> > i'm working on the xcb port of ecore, and i'm facing a problem.
> >
> > I have a XCBButtonPressEvent event, and i need to retrieve the connection
> > from which it has been sent.
> > In the structure, there's no information about that.
> >
> > Does someone know how to get this connection ? (maybe from the root
> > XCBWINDOW ?)
>
> Multiple connections can be opened to the same server, which will have
> the same XID for the root window, so that won't help. I think.
>
> When you call XCBWaitForEvent or XCBPollForEvent, you know what
> connection you're getting the event from. You should track it there if
> you need it. You could create your own structure containing the event
> and an XCBConnection* or something.

Well, i think that i'll do something like that. Maybe not a structure, but
i'll get it when i ask for the event.

Thank you

Vincent


More information about the xcb mailing list